doc: [skip-e2e] add comments for event manager (#33444)

Add comments for event manager(internal/datanode/event_manager.go).

Signed-off-by: ArenaSu <704427617@qq.com>
pull/33792/head
ArenaSu 2024-06-13 17:56:06 +08:00 committed by GitHub
parent db59249776
commit 2dfa752527
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -215,6 +215,7 @@ func (node *DataNode) handleDeleteEvent(vChanName string) {
node.tryToReleaseFlowgraph(vChanName)
}
// event represents a single event with specified channel and version.
type event struct {
eventType int
vChanName string
@ -222,6 +223,7 @@ type event struct {
info *datapb.ChannelWatchInfo
}
// channelEventManager is used to handle events from channel watched event.
type channelEventManager struct {
sync.Once
wg sync.WaitGroup
@ -232,6 +234,7 @@ type channelEventManager struct {
retryInterval time.Duration
}
// These are valid types of an event.
const (
putEventType = 1
deleteEventType = 2