Skip to content
Snippets Groups Projects
Commit d6547765 authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

Merge branch 'test/ProbeKnownRounds' into 'project/Channels'

removed the host pool hack and made the code probe the known rounds via prints

See merge request !411
parents 3e3de265 3834566c
No related branches found
No related tags found
4 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!411removed the host pool hack and made the code probe the known rounds via prints,!340Project/channels
...@@ -358,7 +358,7 @@ func (c *client) follow(identity receptionID.IdentityUse, ...@@ -358,7 +358,7 @@ func (c *client) follow(identity receptionID.IdentityUse,
if !hasMessage && c.verboseRounds != nil { if !hasMessage && c.verboseRounds != nil {
c.verboseRounds.denote(rid, RoundState(NoMessageAvailable)) c.verboseRounds.denote(rid, RoundState(NoMessageAvailable))
} }
//jww.INFO.Printf("[LOOKUP] round %d checked for %d, has message: %s", rid, identity.EphId.Int64(), hasMessage) //jww.INFO.Printf("[LOOKUP] round %d checked for %d, has message: %v", rid, identity.EphId.Int64(), hasMessage)
return hasMessage return hasMessage
} }
......
...@@ -14,6 +14,7 @@ package gateway ...@@ -14,6 +14,7 @@ package gateway
import ( import (
"encoding/json" "encoding/json"
"math"
"sort" "sort"
"strings" "strings"
"sync" "sync"
...@@ -822,10 +823,7 @@ func getPoolSize(ndfLen, maxSize uint32) (uint32, error) { ...@@ -822,10 +823,7 @@ func getPoolSize(ndfLen, maxSize uint32) (uint32, error) {
"Unable to create HostPool: no gateways available") "Unable to create HostPool: no gateways available")
} }
// fix-me: this is a HACK to get it working in testnet night of 10/12/2022 poolSize := uint32(math.Ceil(math.Sqrt(float64(ndfLen))))
// DO NOT PUSH TO LIVE - gateway gossip shuffle must be fixed
//poolSize := uint32(math.Ceil(math.Sqrt(float64(ndfLen))))
poolSize := ndfLen
if poolSize > maxSize { if poolSize > maxSize {
return maxSize, nil return maxSize, nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment