[#115] Update sdk version to support priority

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2021-12-07 14:57:16 +03:00 committed by Alex Vanin
parent 1bb6c5f384
commit 71e846a4fc
7 changed files with 50 additions and 102 deletions

View file

@ -261,13 +261,14 @@ func getDefaultConfig() *viper.Viper {
v := settings()
v.SetDefault(cfgPeers+".0.address", "127.0.0.1:8080")
v.SetDefault(cfgPeers+".0.weight", 1)
v.SetDefault(cfgPeers+".0.priority", 1)
return v
}
func getPool(ctx context.Context, t *testing.T, key *keys.PrivateKey) pool.Pool {
pb := new(pool.Builder)
pb.AddNode("localhost:8080", 1)
pb.AddNode("localhost:8080", 1, 1)
opts := &pool.BuilderOptions{
Key: &key.PrivateKey,