forked from TrueCloudLab/frostfs-node
[#930] gc: Stop internal activity by context
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
c441296592
commit
e3573de6db
5 changed files with 50 additions and 18 deletions
|
@ -1009,7 +1009,7 @@ func initLocalStorage(ctx context.Context, c *cfg) {
|
|||
ls := engine.New(c.engineOpts()...)
|
||||
|
||||
addNewEpochAsyncNotificationHandler(c, func(ev event.Event) {
|
||||
ls.HandleNewEpoch(ev.(netmap2.NewEpoch).EpochNumber())
|
||||
ls.HandleNewEpoch(ctx, ev.(netmap2.NewEpoch).EpochNumber())
|
||||
})
|
||||
|
||||
// allocate memory for the service;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue