Skip to content

Commit

Permalink
Move panic to error
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Jun 10, 2024
1 parent a7968a0 commit af611a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func main() {

err = client.Ping(ctx, readpref.Primary())
if err != nil {
panic(err)
log.Printf("Unable to dial: %v", err)
}

cancel()
Expand Down

0 comments on commit af611a6

Please sign in to comment.