MCPcopy
hub / github.com/livekit/livekit / NewMigrationDataCache

Function NewMigrationDataCache

pkg/rtc/migrationdatacache.go:24–29  ·  view source on GitHub ↗
(lastSeq uint32, expiredAt time.Time)

Source from the content-addressed store, hash-verified

22}
23
24func NewMigrationDataCache(lastSeq uint32, expiredAt time.Time) *MigrationDataCache {
25 return &MigrationDataCache{
26 lastSeq: lastSeq,
27 expiredAt: expiredAt,
28 }
29}
30
31// Add adds a message to the cache if there is a gap between the last sequence number and cached messages then return the cache State:
32// - MigrationDataCacheStateWaiting: waiting for the next packet (lastSeq + 1) of last sequence from old node

Callers 2

SetMigrateStateMethod · 0.85

Calls

no outgoing calls

Tested by 1