mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-27 01:48:09 -07:00
make infohash and peerID byte arrays (#169)
This commit is contained in:
committed by
Jimmy Zelinskie
parent
a081e5195b
commit
7f16c55d81
@@ -42,7 +42,7 @@ func TestReplacePeer(t *testing.T) {
|
||||
cfg: &cfg,
|
||||
}
|
||||
peer := chihaya.Peer{
|
||||
ID: chihaya.PeerID("abcdefghijklmnoprstu"),
|
||||
ID: chihaya.PeerID([20]byte{}),
|
||||
Port: 2000,
|
||||
IP: net.ParseIP("10.150.255.23"),
|
||||
}
|
||||
@@ -77,7 +77,7 @@ func TestInsertPeer(t *testing.T) {
|
||||
cfg: &cfg,
|
||||
}
|
||||
peer := chihaya.Peer{
|
||||
ID: chihaya.PeerID("abcdefghijklmnoprstu"),
|
||||
ID: chihaya.PeerID([20]byte{}),
|
||||
Port: 2000,
|
||||
IP: net.ParseIP("10.150.255.23"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user