mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 09:25:46 +03:00
nomad: leader forwarding not needed for regions
This commit is contained in:
@@ -7,12 +7,10 @@ type Region struct {
|
||||
srv *Server
|
||||
}
|
||||
|
||||
// List is used to list all of the known regions.
|
||||
// List is used to list all of the known regions. No leader forwarding is
|
||||
// required for this endpoint because memberlist is used to populate the
|
||||
// peers list we read from.
|
||||
func (r *Region) List(args *structs.GenericRequest, reply *[]string) error {
|
||||
if done, err := r.srv.forward("Region.List", args, args, reply); done {
|
||||
return err
|
||||
}
|
||||
|
||||
*reply = r.srv.Regions()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user