mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-25 23:29:57 -07:00
update dependencies and fix lint warnings
This commit is contained in:
@@ -27,14 +27,14 @@ type benchData struct {
|
||||
}
|
||||
|
||||
func generateInfoHashes() (a [ihCount]bittorrent.InfoHash) {
|
||||
for i := range a {
|
||||
for i := range ihCount {
|
||||
a[i] = randIH(i < ihCount/2)
|
||||
}
|
||||
return a
|
||||
}
|
||||
|
||||
func generatePeers() (a [peersCount]bittorrent.Peer) {
|
||||
for i := range a {
|
||||
for i := range peersCount {
|
||||
var ip []byte
|
||||
if i%2 == 0 {
|
||||
ip = make([]byte, net.IPv4len)
|
||||
|
||||
Reference in New Issue
Block a user