Skip to content

Commit d875e98

Browse files
authored
Merge branch 'master' into fix/node-ui-gpu
2 parents 8f9e37c + 00edad4 commit d875e98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/paths/local.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ func (st *Local) Reserve(ctx context.Context, sid storiface.SectorRef, ft storif
468468
if err != nil {
469469
return nil, err
470470
}
471-
release = func() {}
471+
release := func() {}
472472

473473
st.localLk.Lock()
474474

@@ -533,7 +533,7 @@ func (st *Local) Reserve(ctx context.Context, sid storiface.SectorRef, ft storif
533533
}
534534
}
535535

536-
return
536+
return release, nil
537537
}
538538

539539
// DoubleCallWrap wraps a function to make sure it's not called twice
@@ -543,7 +543,7 @@ func DoubleCallWrap(f func()) func() {
543543
curStack := make([]byte, 20480)
544544
curStack = curStack[:runtime.Stack(curStack, false)]
545545
if len(stack) > 0 {
546-
log.Warnf("double call from:\n%s\nBut originally from:", curStack, stack)
546+
log.Warnf("double call from:\n%s\nBut originally from:\n%s", curStack, stack)
547547
return
548548
}
549549
stack = curStack

0 commit comments

Comments
 (0)