failover requests that the peer node initiate a failover.
()
| 408 | |
| 409 | // failover requests that the peer node initiate a failover. |
| 410 | func (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. |