]> Sergey Matveev's repositories - btrtrc.git/commitdiff
chore: unnecessary use of fmt.Sprintf
authorguoguangwu <guoguangwu@magic-shield.com>
Sun, 9 Jul 2023 05:33:05 +0000 (13:33 +0800)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 9 Jul 2023 12:16:22 +0000 (22:16 +1000)
peerconn_test.go

index a107976b27a88cc30c5e1afa744cb0e948bdb7d5..e294b6b620590de33886514facd5bfd46cae9bc6 100644 (file)
@@ -279,7 +279,7 @@ func peerConnForPreferredNetworkDirection(
                pc.Network = "udp"
        }
        if ipv6 {
-               pc.RemoteAddr = &net.TCPAddr{IP: net.ParseIP(fmt.Sprintf("::420"))}
+               pc.RemoteAddr = &net.TCPAddr{IP: net.ParseIP("::420")}
        } else {
                pc.RemoteAddr = &net.TCPAddr{IP: net.IPv4(1, 2, 3, 4)}
        }