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

Function newSyncClient

engine/sync.go:348–358  ·  view source on GitHub ↗

newSyncClient returns an initialised synchronisation client.

(e *Engine)

Source from the content-addressed store, hash-verified

346
347// newSyncClient returns an initialised synchronisation client.
348func 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.
361func (sc *syncClient) dial() error {

Callers 2

newEngineWithNCCFunction · 0.85
newSyncTestFunction · 0.85

Calls

no outgoing calls

Tested by 1

newSyncTestFunction · 0.68