mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-02-05 01:00:19 +08:00
log the values that the limiter is initialized with
This commit is contained in:
parent
1e2500707d
commit
df93b499a4
1
limit.go
1
limit.go
@ -70,6 +70,7 @@ type fixedLimiter struct {
|
|||||||
var _ Limiter = (*fixedLimiter)(nil)
|
var _ Limiter = (*fixedLimiter)(nil)
|
||||||
|
|
||||||
func NewFixedLimiter(conf LimitConfig) Limiter {
|
func NewFixedLimiter(conf LimitConfig) Limiter {
|
||||||
|
log.Debugw("initializing new limiter with config", "limits", conf)
|
||||||
return &fixedLimiter{LimitConfig: conf}
|
return &fixedLimiter{LimitConfig: conf}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user