forked from TrueCloudLab/frostfs-http-gw
[#115] Update sdk version to support priority
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
1bb6c5f384
commit
71e846a4fc
7 changed files with 50 additions and 102 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue