Skip to content

Commit 3ab50df

Browse files
committed
Remove dead code
1 parent 857fa79 commit 3ab50df

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

rolling-shutter/keyper/fx/messagesender.go

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,6 @@ type RemoteError struct {
3131

3232
var _ IRetriable = &RemoteError{}
3333

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-
6234
func (remoteError *RemoteError) Error() string {
6335
return fmt.Sprintf("remote error: %s", remoteError.msg)
6436
}

0 commit comments

Comments
 (0)