chore: go fmt and return timecache named import

This commit is contained in:
Wondertan 2022-01-09 18:41:10 +02:00 committed by vyzo
parent 6035642336
commit ec5e9b42a9
3 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@ type msgIDGenerator struct {
topicGensLk sync.RWMutex
}
func newMsgIdGenerator() *msgIDGenerator{
func newMsgIdGenerator() *msgIDGenerator {
return &msgIDGenerator{
Default: DefaultMsgIdFn,
topicGens: make(map[string]MsgIdFunction),

View File

@ -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.