diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-20 19:52:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-20 19:52:03 +0800 |
commit | 4f5b362bda862b0d77583491d5e04193148a9349 (patch) | |
tree | fc00b04aaaebb3dae1e87a1870463e2c8016dcdb /p2p/discover/node.go | |
parent | 91f9f355b2e334214e38e1827c624cdcc23c5130 (diff) | |
download | dexon-4f5b362bda862b0d77583491d5e04193148a9349.tar dexon-4f5b362bda862b0d77583491d5e04193148a9349.tar.gz dexon-4f5b362bda862b0d77583491d5e04193148a9349.tar.bz2 dexon-4f5b362bda862b0d77583491d5e04193148a9349.tar.lz dexon-4f5b362bda862b0d77583491d5e04193148a9349.tar.xz dexon-4f5b362bda862b0d77583491d5e04193148a9349.tar.zst dexon-4f5b362bda862b0d77583491d5e04193148a9349.zip |
%#x => %x
Diffstat (limited to 'p2p/discover/node.go')
-rw-r--r-- | p2p/discover/node.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/discover/node.go b/p2p/discover/node.go index de2588258..e1130e0b5 100644 --- a/p2p/discover/node.go +++ b/p2p/discover/node.go @@ -143,12 +143,12 @@ type NodeID [nodeIDBits / 8]byte // NodeID prints as a long hexadecimal number. func (n NodeID) String() string { - return fmt.Sprintf("%#x", n[:]) + return fmt.Sprintf("%x", n[:]) } // The Go syntax representation of a NodeID is a call to HexID. func (n NodeID) GoString() string { - return fmt.Sprintf("discover.HexID(\"%#x\")", n[:]) + return fmt.Sprintf("discover.HexID(\"%x\")", n[:]) } // HexID converts a hex string to a NodeID. |