localworker: Don't mark calls as returned when returning fails
This commit is contained in:
parent
9bd2537971
commit
1e6a69f8aa
1
extern/sector-storage/worker_local.go
vendored
1
extern/sector-storage/worker_local.go
vendored
@ -229,6 +229,7 @@ func (l *LocalWorker) asyncCall(ctx context.Context, sector abi.SectorID, rt Ret
|
|||||||
|
|
||||||
if err := returnFunc[rt](ctx, ci, l.ret, res, err); err != nil {
|
if err := returnFunc[rt](ctx, ci, l.ret, res, err); err != nil {
|
||||||
log.Errorf("return error: %s: %+v", rt, err)
|
log.Errorf("return error: %s: %+v", rt, err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := l.ct.onReturned(ci); err != nil {
|
if err := l.ct.onReturned(ci); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user