Skip to content

Commit

Permalink
fix(client): shorter check (silent)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Dec 11, 2023
1 parent 9b6fb3e commit 5d601ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/dpsproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ var app = &cli.App{
if errors.Is(err, io.EOF) {
return nil
}
log.Err(err).Msg("client failure")
select {
case <-time.After(time.Second):
continue
case <-time.After(time.Second * 10):
log.Err(err).Msg("client failure")
continue
case <-ctx.Done():
return err
Expand Down

0 comments on commit 5d601ad

Please sign in to comment.