sealing pipeline: Clarify maybeNotifyRemoteDone
This commit is contained in:
parent
859c2606f0
commit
015139d451
@ -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) {
|
func maybeNotifyRemoteDone(success bool, state string) func(*SectorInfo) {
|
||||||
return func(sector *SectorInfo) {
|
return func(sector *SectorInfo) {
|
||||||
if sector.RemoteSealingDoneEndpoint == "" {
|
if sector.RemoteSealingDoneEndpoint == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user