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

Method Remove

proxycore/mockcluster.go:354–368  ·  view source on GitHub ↗
(host MockHost)

Source from the content-addressed store, hash-verified

352}
353
354func (s *MockServer) Remove(host MockHost) {
355 if host.equal(s.local) {
356 return
357 }
358 s.mu.Lock()
359 s.peers = removeHost(s.peers, host)
360 s.mu.Unlock()
361 s.Event(&message.TopologyChangeEvent{
362 ChangeType: primitive.TopologyChangeTypeRemovedNode,
363 Address: &primitive.Inet{
364 Addr: net.ParseIP(host.IP),
365 Port: int32(host.Port),
366 },
367 })
368}
369
370func (s *MockServer) Shutdown() {
371 s.cancel()

Callers

nothing calls this directly

Calls 3

EventMethod · 0.95
removeHostFunction · 0.85
equalMethod · 0.45

Tested by

no test coverage detected