Commit dc36ffc7 authored by Kirill Smelkov's avatar Kirill Smelkov

fixup! fixup! Node: Add support for NEO cluster with > 1 master

I missed the following build failure in go/neo/cmd:

    # lab.nexedi.com/kirr/neo/go/neo/cmd/neo
    ./storage.go:128:37: cannot use master (variable of type string) as []string value in argument to neo.NewStorage
parent db81e0de
// Copyright (C) 2016-2021 Nexedi SA and Contributors.
// Copyright (C) 2016-2023 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
......@@ -125,7 +125,7 @@ func storageMain(argv []string) {
}()
return listenAndServe(ctx, net, *bind, func(ctx context.Context, l xnet.Listener) error {
stor := neo.NewStorage(*cluster, master, net, back)
stor := neo.NewStorage(*cluster, []string{master}, net, back)
back = nil
return stor.Run(ctx, l)
})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment