diff --git a/rpc/clients.go b/rpc/clients.go index af03622..c427a09 100644 --- a/rpc/clients.go +++ b/rpc/clients.go @@ -20,6 +20,10 @@ func NewClients[C any](clients []C) *Clients[C] { } } +func (c *Clients[C]) Add(client C) { + c.clients = append(c.clients, client) +} + func (c *Clients[C]) Next() (client C, err error) { if len(c.clients) <= c.next { return client, ErrorNoMoreClient