Revert "close the rcmgr on shutdown"

This reverts commit 73ec10a49e.
This commit is contained in:
Aayush 2022-03-02 15:29:26 -05:00
parent 6dc696b745
commit 17ac583508

View File

@ -1,7 +1,6 @@
package lp2p
import (
"context"
"errors"
"fmt"
"os"
@ -57,11 +56,6 @@ func ResourceManager(lc fx.Lifecycle, repo repo.LockedRepo) (network.ResourceMan
return nil, fmt.Errorf("error creating resource manager: %w", err)
}
lc.Append(fx.Hook{
OnStop: func(_ context.Context) error {
return mgr.Close()
}})
return mgr, nil
}