go-dqlite icon indicating copy to clipboard operation
go-dqlite copied to clipboard

Add function to determine if an error is retryable

Open MathieuBordere opened this issue 2 years ago • 1 comments

LXD (and JuJu) use a function to determine if an error returned by go-dqlite is transient, and thus retryable, or not. Ideally go-dqlite should be able to inform a user if an error is transient.

https://github.com/lxc/lxd/blob/fb36a86f0d4dd4dcdfae0568aedb2275bb8c9539/lxd/db/query/retry.go#L57

MathieuBordere avatar Dec 16 '22 09:12 MathieuBordere