log, don't panic on resource release bugs

This commit is contained in:
vyzo
2022-01-14 13:51:46 +02:00
parent 5d609db2bc
commit 12fcd1d521
2 changed files with 22 additions and 6 deletions

View File

@@ -9,8 +9,12 @@ import (
"github.com/libp2p/go-libp2p-core/network"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/protocol"
logging "github.com/ipfs/go-log/v2"
)
var log = logging.Logger("rcmgr")
type resourceManager struct {
limits Limiter