(minor) refactor redis GC and fix TX calls,

add indicator that metrics are running
This commit is contained in:
Lawrence, Rendall
2022-04-17 00:57:30 +03:00
parent 7716aa828a
commit f9c72341c0
12 changed files with 169 additions and 137 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ import (
type benchData struct {
infoHashes [1000]bittorrent.InfoHash
peers [10000]bittorrent.Peer
peers [1000]bittorrent.Peer
}
func generateInfoHashes() (a [1000]bittorrent.InfoHash) {
@@ -28,7 +28,7 @@ func generateInfoHashes() (a [1000]bittorrent.InfoHash) {
return
}
func generatePeers() (a [10000]bittorrent.Peer) {
func generatePeers() (a [1000]bittorrent.Peer) {
for i := range a {
var ip []byte
if rand.Int63()%2 == 0 {