From bc971c715dd3fa94fde6e25321492dc588171fee Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 23 Oct 2023 16:35:28 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf --- p2psrv/discv5/net.go | 2 +- p2psrv/discv5/ntp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/p2psrv/discv5/net.go b/p2psrv/discv5/net.go index 3585d38b7..39dafeb97 100644 --- a/p2psrv/discv5/net.go +++ b/p2psrv/discv5/net.go @@ -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() } diff --git a/p2psrv/discv5/ntp.go b/p2psrv/discv5/ntp.go index 4fb5f657a..4e90b2850 100644 --- a/p2psrv/discv5/ntp.go +++ b/p2psrv/discv5/ntp.go @@ -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)