MCPcopy
hub / github.com/google/seesaw / failover

Method failover

engine/sync.go:410–416  ·  view source on GitHub ↗

failover requests that the peer node initiate a failover.

()

Source from the content-addressed store, hash-verified

408
409// failover requests that the peer node initiate a failover.
410func (sc *syncClient) failover() error {
411 if err := sc.dial(); err != nil {
412 return err
413 }
414 defer sc.close()
415 return sc.client.Call("SeesawSync.Failover", 0, nil)
416}
417
418// runOnce establishes a connection to the synchronisation server, registers
419// for notifications, polls for notifications, then deregisters.

Callers

nothing calls this directly

Calls 2

dialMethod · 0.95
closeMethod · 0.95

Tested by

no test coverage detected