From 787470c2b42f20d3a39f849c25e29d4bbed26905 Mon Sep 17 00:00:00 2001 From: Geoff Stuart Date: Thu, 12 Jan 2023 12:39:57 -0500 Subject: [PATCH] Remove workaround that is no longer needed --- storage/pipeline/checks.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/storage/pipeline/checks.go b/storage/pipeline/checks.go index 6381ce898..b243804cc 100644 --- a/storage/pipeline/checks.go +++ b/storage/pipeline/checks.go @@ -3,7 +3,6 @@ package sealing import ( "bytes" "context" - "time" "golang.org/x/xerrors" @@ -133,8 +132,6 @@ func checkPrecommit(ctx context.Context, maddr address.Address, si SectorInfo, t if err != nil { return xerrors.Errorf("checking if sector is allocated: %w", err) } - // TODO This is a very bad hack!! We are only using this while we investigate the compiler issue here. - time.Sleep(time.Nanosecond) if alloc { //committed P2 message but commit C2 message too late, pci should be null in this case return &ErrSectorNumberAllocated{xerrors.Errorf("sector %d is allocated, but PreCommit info wasn't found on chain", si.SectorNumber)} @@ -164,8 +161,6 @@ func (m *Sealing) checkCommit(ctx context.Context, si SectorInfo, proof []byte, if err != nil { return xerrors.Errorf("checking if sector is allocated: %w", err) } - // TODO This is a very bad hack!! We are only using this while we investigate the compiler issue here. - time.Sleep(time.Nanosecond) if alloc { // not much more we can check here, basically try to wait for commit, // and hope that this will work