style(bitswap/notifications) make it more obvious
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Brian Tiger Chow committed
Nov 19, 2014 at 12:56 UTC
85229be43a2b274bb120388960f1457ee44a24ad
1 file changed
+2
-1
exchange/bitswap/notifications/notifications.go
+2
-1
@@ -8,6 +8,8 @@ import (
8
u "github.com/jbenet/go-ipfs/util"
9
)
10
11
+const bufferSize = 16
12
+
13
type PubSub interface {
14
Publish(block blocks.Block)
15
Subscribe(ctx context.Context, k u.Key) <-chan blocks.Block
@@ -15,7 +17,6 @@ type PubSub interface {
17
}
18
19
func New() PubSub {
18
- const bufferSize = 16
20
return &impl{*pubsub.New(bufferSize)}
21
}
22