Skip to content

Commit

Permalink
chore: unnecessary use of fmt.Sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Oct 23, 2023
1 parent 16c5d34 commit bc971c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion p2psrv/discv5/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ loop:
}
log.Trace("loop stopped")

log.Debug(fmt.Sprintf("shutting down"))
log.Debug("shutting down")
if net.conn != nil {
net.conn.Close()
}
Expand Down
2 changes: 1 addition & 1 deletion p2psrv/discv5/ntp.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func checkClockDrift() {
}
if drift < -driftThreshold || drift > driftThreshold {
warning := fmt.Sprintf("System clock seems off by %v, which can prevent network connectivity", drift)
howtofix := fmt.Sprintf("Please enable network time synchronisation in system settings")
howtofix := "Please enable network time synchronisation in system settings"
separator := strings.Repeat("-", len(warning))

log.Warn(separator)
Expand Down

0 comments on commit bc971c7

Please sign in to comment.