From d956dd5cd538077da5061ed61ba9853cf1da70f7 Mon Sep 17 00:00:00 2001 From: Junpei Kawamoto Date: Mon, 19 Apr 2021 15:14:11 -0600 Subject: [PATCH] Remove TODOs that implemented with #169 --- renter/renterutil/strategies.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/renter/renterutil/strategies.go b/renter/renterutil/strategies.go index 23ea322..f659add 100644 --- a/renter/renterutil/strategies.go +++ b/renter/renterutil/strategies.go @@ -1303,7 +1303,6 @@ func (ssd SerialSectorDeleter) DeleteSectors(ctx context.Context, db MetaDB, sec if err != nil { return err } - // TODO: no-op if roots already deleted // TODO: respect ctx err = h.DeleteSectors(roots) ssd.Hosts.release(hostKey) @@ -1330,7 +1329,6 @@ func (psd ParallelSectorDeleter) DeleteSectors(ctx context.Context, db MetaDB, s if err != nil { return &HostError{hostKey, err} } - // TODO: no-op if roots already deleted // TODO: respect ctx err = h.DeleteSectors(roots) psd.Hosts.release(hostKey)