set pubsub default capacity to 0

Refs #951

Jae: I don't know a good way to catch these errors in general, but
forcing pubsub's internal channel to have a capacity of 0 will reveal
bugs sooner, if the subscriber also has a 0 or small capacity ch to pull
from.
This commit is contained in:
Anton Kaliaev
2018-06-19 17:07:21 +04:00
parent 26b2e808f7
commit aaddf5d32f
3 changed files with 5 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ import (
"github.com/tendermint/tmlibs/log"
)
const defaultCapacity = 1000
const defaultCapacity = 0
type EventBusSubscriber interface {
Subscribe(ctx context.Context, subscriber string, query tmpubsub.Query, out chan<- interface{}) error