style(bs:notific) let struct field be value
rather than pointer
Brian Tiger Chow committed
Sep 13, 2014 at 16:18 UTC
baafc6fdf2664177ec153aca31a5dc91d37ee04b
1 file changed
+2
-2
bitswap/notifications/notifications.go
+2
-2
@@ -16,11 +16,11 @@ type PubSub interface {
16
17
func New() PubSub {
18
const bufferSize = 16
19
- return &impl{pubsub.New(bufferSize)}
19
+ return &impl{*pubsub.New(bufferSize)}
20
}
21
22
type impl struct {
23
- wrapped *pubsub.PubSub
23
+ wrapped pubsub.PubSub
24
}
25
26
func (ps *impl) Publish(block *blocks.Block) {