Skip to content

Commit

Permalink
Merge pull request #77 from libp2p/fix-staticcheck
Browse files Browse the repository at this point in the history
use log.Warn instead of log.Warning
  • Loading branch information
Stebalien authored Apr 23, 2021
2 parents 769c219 + ff00d9c commit ed9ea79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/transport/tcp/reuseport.go
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ func init() {
}
v, exist := os.LookupEnv(deprecatedEnvReuseport)
if exist {
log.Warning("IPFS_REUSEPORT is deprecated, use LIBP2P_TCP_REUSEPORT instead")
log.Warn("IPFS_REUSEPORT is deprecated, use LIBP2P_TCP_REUSEPORT instead")
if v == "false" || v == "f" || v == "0" {
envReuseportVal = false
log.Infof("REUSEPORT disabled (IPFS_REUSEPORT=%s)", v)

0 comments on commit ed9ea79

Please sign in to comment.