Change head sync update behaviour
This commit is contained in:
parent
94aea5bafb
commit
b4cc8d0a61
@ -54,11 +54,11 @@ func (a *aclSyncProtocol) HeadUpdate(ctx context.Context, senderId string, updat
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = a.aclList.AddRawRecords(update.Records)
|
err = a.aclList.AddRawRecords(update.Records)
|
||||||
if err != nil && err != list.ErrIncorrectRecordSequence {
|
if err == list.ErrIncorrectRecordSequence {
|
||||||
return
|
|
||||||
}
|
|
||||||
return a.reqFactory.CreateFullSyncRequest(a.aclList, update.Head)
|
return a.reqFactory.CreateFullSyncRequest(a.aclList, update.Head)
|
||||||
}
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func (a *aclSyncProtocol) FullSyncRequest(ctx context.Context, senderId string, request *consensusproto.LogFullSyncRequest) (response *consensusproto.LogSyncMessage, err error) {
|
func (a *aclSyncProtocol) FullSyncRequest(ctx context.Context, senderId string, request *consensusproto.LogFullSyncRequest) (response *consensusproto.LogSyncMessage, err error) {
|
||||||
log := a.log.With(
|
log := a.log.With(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user