sealing pipeline: Clarify maybeNotifyRemoteDone

This commit is contained in:
Łukasz Magiera 2022-09-19 12:16:11 +02:00
parent 859c2606f0
commit 015139d451

View File

@ -826,6 +826,9 @@ func planOneOrIgnore(ts ...func() (mut mutator, next func(*SectorInfo) (more boo
}
}
// maybeNotifyRemoteDone will send sealing-done notification to the RemoteSealingDone
// if the RemoteSealingDoneEndpoint is set. If RemoteSealingDoneEndpoint is not set,
// this is no-op
func maybeNotifyRemoteDone(success bool, state string) func(*SectorInfo) {
return func(sector *SectorInfo) {
if sector.RemoteSealingDoneEndpoint == "" {