Skip to content

Commit 560cb90

Browse files
authored
Update proxy.go
1 parent 9a62dc7 commit 560cb90

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/proxy/proxy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,11 @@ func (c *Client) ConnCount() (uint64, uint64) {
615615
return atomic.LoadUint64(&c.connCount), c.conf.MaxConnections
616616
}
617617

618+
// InstanceCount returns the number of configured instances.
619+
func (c *Client) InstanceCount() int {
620+
return len(c.conf.Instances)
621+
}
622+
618623
// Serve starts proxying connections for all configured instances using the
619624
// associated socket.
620625
func (c *Client) Serve(ctx context.Context, notify func()) error {

0 commit comments

Comments
 (0)