Skip to content

Commit

Permalink
chore: go fmt and return timecache named import
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan authored and vyzo committed Jan 23, 2022
1 parent 6035642 commit ec5e9b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions midgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
type msgIDGenerator struct {
Default MsgIdFunction

topicGens map[string]MsgIdFunction
topicGens map[string]MsgIdFunction
topicGensLk sync.RWMutex
}

func newMsgIdGenerator() *msgIDGenerator{
func newMsgIdGenerator() *msgIDGenerator {
return &msgIDGenerator{
Default: DefaultMsgIdFn,
topicGens: make(map[string]MsgIdFunction),
Expand Down
4 changes: 2 additions & 2 deletions pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/libp2p/go-libp2p-core/protocol"

logging "github.com/ipfs/go-log"
"github.com/whyrusleeping/timecache"
timecache "github.com/whyrusleeping/timecache"
)

// DefaultMaximumMessageSize is 1mb.
Expand Down Expand Up @@ -213,7 +213,7 @@ const (

type Message struct {
*pb.Message
ID string
ID string
ReceivedFrom peer.ID
ValidatorData interface{}
}
Expand Down
6 changes: 3 additions & 3 deletions tag_tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ var (
type tagTracer struct {
sync.RWMutex

cmgr connmgr.ConnManager
idGen *msgIDGenerator
decayer connmgr.Decayer
cmgr connmgr.ConnManager
idGen *msgIDGenerator
decayer connmgr.Decayer
decaying map[string]connmgr.DecayingTag
direct map[peer.ID]struct{}

Expand Down

0 comments on commit ec5e9b4

Please sign in to comment.