Skip to content

Commit

Permalink
Return if err in getting client
Browse files Browse the repository at this point in the history
  • Loading branch information
alok87 committed Sep 22, 2020
1 parent d345b7d commit e20ba0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/queue/beanstalk.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ func (b *Beanstalk) waitForShortPollInterval() {
func (b *Beanstalk) reestablishConn(queueURI string) {
client, err := b.getClient(queueURI)
if err != nil {
klog.Error(err)
klog.Errorf("Could not reestablish conn, err:%v\n", err)
return
}

err = client.reestablishConn()
Expand Down

0 comments on commit e20ba0a

Please sign in to comment.