diff --git a/p2p/host/resource-manager/extapi.go b/p2p/host/resource-manager/extapi.go index b3214f814a..415d7f8bd1 100644 --- a/p2p/host/resource-manager/extapi.go +++ b/p2p/host/resource-manager/extapi.go @@ -147,5 +147,5 @@ func (r *resourceManager) Stat() (result ResourceManagerStat) { } func (r *resourceManager) GetConnLimit() int { - return r.limits.GetConnLimits().GetConnTotalLimit() + return r.limits.GetSystemLimits().GetConnTotalLimit() }