Update doc and add context

Signed-off-by: neza2017 <yefu.chen@zilliz.com>
pull/4973/head^2
neza2017 2020-11-04 17:23:18 +08:00 committed by yefu.chen
parent d18c17e786
commit 9c807cc4df
1 changed files with 5 additions and 1 deletions

View File

@ -1137,6 +1137,7 @@ type softTimeTickBarrier struct {
lastTt Timestamp
outTt chan Timestamp
ttStream *MsgStream
ctx context.Context
}
func (ttBarrier *softTimeTickBarrier) GetTimeTick() Timestamp
@ -1156,6 +1157,7 @@ type hardTimeTickBarrier struct {
peer2Tt map[UniqueId]List
outTt chan Timestamp
ttStream *MsgStream
ctx context.Context
}
func (ttBarrier *hardTimeTickBarrier) GetTimeTick() Timestamp
@ -1180,6 +1182,8 @@ type timeSyncMsgProducer struct {
insertSyncStream *MsgStream
deleteSyncStream *MsgStream
k2sSyncStream *MsgStream
ctx context.Context
}
func (syncMsgProducer* timeSyncMsgProducer) SetProxyTtStreams(proxyTt *MsgStream, proxyIds []UniqueId)
@ -1189,7 +1193,7 @@ func (syncMsgProducer* timeSyncMsgProducer) SetInsertSyncStream(insertSync *MsgS
func (syncMsgProducer* timeSyncMsgProducer) SetDeleteSyncStream(deleteSync *MsgStream)
func (syncMsgProducer* timeSyncMsgProducer) SetK2sSyncStream(k2sSync *MsgStream)
func (syncMsgProducer* timeSyncMsgProducer) Start(ctx context.Context) error
func (syncMsgProducer* timeSyncMsgProducer) Start() error
func (syncMsgProducer* timeSyncMsgProducer) Close() error
```