MCPcopy Create free account
hub / github.com/datastax/cql-proxy / Remove

Method Remove

proxycore/mockcluster.go:542–552  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

540}
541
542func (c *MockCluster) Remove(n int) {
543 host := c.generate(n)
544 removed := removeHost(c.hosts, host)
545 if len(removed) == len(c.hosts) {
546 return
547 }
548 for _, s := range c.servers {
549 s.Remove(host)
550 }
551 c.maybeStop(host)
552}
553
554func (c *MockCluster) maybeStop(host MockHost) {
555 key := host.String()

Callers 1

TestConnectSessionFunction · 0.95

Calls 3

generateMethod · 0.95
maybeStopMethod · 0.95
removeHostFunction · 0.85

Tested by 1

TestConnectSessionFunction · 0.76