Skip to content

Commit

Permalink
chore: update go-log to v2 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored Nov 27, 2021
1 parent 9449b32 commit 3238e0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion p2p/host/peerstore/pstoreds/addr_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

ds "github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/query"
logging "github.com/ipfs/go-log"
logging "github.com/ipfs/go-log/v2"

"github.com/libp2p/go-libp2p-core/peer"
pstore "github.com/libp2p/go-libp2p-core/peerstore"
Expand Down
7 changes: 4 additions & 3 deletions p2p/host/peerstore/pstoremem/addr_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import (
"sync"
"time"

logging "github.com/ipfs/go-log"
"github.com/libp2p/go-libp2p-peerstore/addr"

"github.com/libp2p/go-libp2p-core/peer"
pstore "github.com/libp2p/go-libp2p-core/peerstore"
"github.com/libp2p/go-libp2p-core/record"
ma "github.com/multiformats/go-multiaddr"

"github.com/libp2p/go-libp2p-peerstore/addr"
logging "github.com/ipfs/go-log/v2"
ma "github.com/multiformats/go-multiaddr"
)

var log = logging.Logger("peerstore")
Expand Down
2 changes: 1 addition & 1 deletion p2p/host/peerstore/pstoremem/inmem_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ func BenchmarkInMemoryKeyBook(b *testing.B) {
func TestMain(m *testing.M) {
goleak.VerifyTestMain(
m,
goleak.IgnoreTopFunction("github.com/ipfs/go-log/writer.(*MirrorWriter).logRoutine"),
goleak.IgnoreTopFunction("github.com/ipfs/go-log/v2/writer.(*MirrorWriter).logRoutine"),
)
}

0 comments on commit 3238e0d

Please sign in to comment.