mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
style(bs:notific) let struct field be value
rather than pointer
This commit is contained in:
parent
7fcb5d3a4b
commit
baafc6fdf2
@ -16,11 +16,11 @@ type PubSub interface {
|
||||
|
||||
func New() PubSub {
|
||||
const bufferSize = 16
|
||||
return &impl{pubsub.New(bufferSize)}
|
||||
return &impl{*pubsub.New(bufferSize)}
|
||||
}
|
||||
|
||||
type impl struct {
|
||||
wrapped *pubsub.PubSub
|
||||
wrapped pubsub.PubSub
|
||||
}
|
||||
|
||||
func (ps *impl) Publish(block *blocks.Block) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user