KaymeKaydex / go-vshard-router

go vshard-router implementation for tarantool
MIT License
21 stars 3 forks source link

ReplicaCall/RouterCallImpl: do not retry on every error #66

Closed nurzhan-saktaganov closed 2 months ago

nurzhan-saktaganov commented 2 months ago

ReplicaCall and RouterCallImpl always retry regardless of the error type. I guess, retrying on StorageCallAssertError or some other error is not effective, because it is highly likely to get the same result in the second and so on retries.

So, I propose retrying only in the case of StorageCallVShardError.