Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin Rentea committed Mar 17, 2017
1 parent eec6683 commit 1575f60
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/sms/nexmo_sms_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ func (ns *NexmoSender) Send(msg *protocol.Message) error {
return err
}

type retryable struct {
maxTries int
backoff.Backoff
}

func (r *retryable) executeAndCheck(op func() (*NexmoMessageResponse, error)) error {
tryCounter := 0

Expand Down Expand Up @@ -237,8 +242,3 @@ func (ns *NexmoSender) createHttpClient() {
Timeout: RequestTimeout,
}
}

type retryable struct {
maxTries int
backoff.Backoff
}

0 comments on commit 1575f60

Please sign in to comment.