quorum/event
Felix Lange 53a18d2e27 event: document select case slice use and add edge case test (#16680)
Feed keeps active subscription channels in a slice called 'f.sendCases'.
The Send method tracks the active cases in a local variable 'cases'
whose value is f.sendCases initially. 'cases' shrinks to a shorter
prefix of f.sendCases every time a send succeeds, moving the successful
case out of range of the active case list.

This can be confusing because the two slices share a backing array. Add
more comments to document what is going on. Also add a test for removing
a case that is in 'f.sentCases' but not 'cases'.
2018-05-10 13:26:36 +03:00
..
filter event: golint updates for this or self warning (#16631) 2018-05-03 14:54:36 +03:00
event.go eth/filter: check nil pointer when unsubscribe (#16682) 2018-05-09 11:29:25 +03:00
event_test.go event: add new Subscription type and related utilities 2017-01-25 18:44:20 +01:00
example_feed_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_scope_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_subscription_test.go all: update license information 2017-04-14 10:29:00 +02:00
example_test.go core, eth, event, miner, xeth: fix event post / subscription race 2015-10-12 16:22:03 +03:00
feed.go event: document select case slice use and add edge case test (#16680) 2018-05-10 13:26:36 +03:00
feed_test.go event: document select case slice use and add edge case test (#16680) 2018-05-10 13:26:36 +03:00
subscription.go all: update license information 2017-04-14 10:29:00 +02:00
subscription_test.go all: update license information 2017-04-14 10:29:00 +02:00