newSyncClient returns an initialised synchronisation client.
(e *Engine)
| 346 | |
| 347 | // newSyncClient returns an initialised synchronisation client. |
| 348 | func newSyncClient(e *Engine) *syncClient { |
| 349 | sc := &syncClient{ |
| 350 | engine: e, |
| 351 | quit: make(chan bool), |
| 352 | start: make(chan bool), |
| 353 | stopped: make(chan bool, 1), |
| 354 | } |
| 355 | sc.dispatch = sc.handleNote |
| 356 | sc.stopped <- true |
| 357 | return sc |
| 358 | } |
| 359 | |
| 360 | // dial establishes a connection to our peer Seesaw node. |
| 361 | func (sc *syncClient) dial() error { |
no outgoing calls