File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
rolling-shutter/keyper/fx Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -31,34 +31,6 @@ type RemoteError struct {
31
31
32
32
var _ IRetriable = & RemoteError {}
33
33
34
- type NonRetriableError struct {
35
- Err error
36
- }
37
-
38
- func (* NonRetriableError ) IsRetriable () bool {
39
- return false
40
- }
41
-
42
- func (e * NonRetriableError ) Error () string {
43
- return e .Err .Error ()
44
- }
45
-
46
- func (e * NonRetriableError ) Unwrap () error {
47
- return e .Err
48
- }
49
-
50
- var _ IRetriable = & NonRetriableError {}
51
-
52
- // IsRetriable checks if we should retry an action that resulted in the given error.
53
- func IsRetriable (err error ) bool {
54
- switch e := err .(type ) {
55
- case IRetriable :
56
- return e .IsRetriable ()
57
- default :
58
- return true
59
- }
60
- }
61
-
62
34
func (remoteError * RemoteError ) Error () string {
63
35
return fmt .Sprintf ("remote error: %s" , remoteError .msg )
64
36
}
You can’t perform that action at this time.
0 commit comments