diff options
Diffstat (limited to 'client/client.go')
-rw-r--r-- | client/client.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/client/client.go b/client/client.go index 90de1c60..a48f3c17 100644 --- a/client/client.go +++ b/client/client.go @@ -993,14 +993,7 @@ func (c *MonitorNeighborStateClient) Recv() (*config.Neighbor, error) { return api.NewNeighborFromAPIStruct(p) } -func (cli *Client) MonitorNeighborState(names ...string) (*MonitorNeighborStateClient, error) { - if len(names) > 1 { - return nil, fmt.Errorf("support one name at most: %d", len(names)) - } - name := "" - if len(names) > 0 { - name = names[0] - } +func (cli *Client) MonitorNeighborState(name string) (*MonitorNeighborStateClient, error) { stream, err := cli.cli.MonitorPeerState(context.Background(), &api.Arguments{ Name: name, }) |