newSyncServer returns an initalised synchronisation server.
(e *Engine)
| 235 | |
| 236 | // newSyncServer returns an initalised synchronisation server. |
| 237 | func newSyncServer(e *Engine) *syncServer { |
| 238 | return &syncServer{ |
| 239 | engine: e, |
| 240 | heartbeatInterval: syncHeartbeatInterval, |
| 241 | sessions: make(map[SyncSessionID]*syncSession), |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | // newSession allocates a new session ID and starts managing the session with |
| 246 | // the provided node. |
no outgoing calls