224
225
if request.LastKnownTableVersion != 0 && request.LastKnownTableVersion != currentTableVersion {
226
>
// If request.LastKnownTableVersion == 0 then caller does not care about checking whether they have the most
nexus_endpoint_store.go
227
>
// current view while paginating.
228
>
// Otherwise, if there is a version mismatch, then the table has been updated during pagination, and throw
229
>
// error to indicate caller must start over.
230
>
return nil, fmt.Errorf("%w. provided table version: %v current table version: %v",
231
>
p.ErrNexusTableVersionConflict,
232
>
request.LastKnownTableVersion,
233
>
currentTableVersion)
234
>
}
235
236
return response, nil