refact(census): Make emitting events stateful for a census job

This commit is contained in:
Timothy Messier committed 2024-02-23 15:44:09 +00:00
1 parent a4b34f67c8
commit 7c14e42897
1 file changed
+2
+2
View File
@@ -21,6 +21,7 @@ type censusJob struct {
r db.Reader
w db.Writer
lurEnabled bool
emitEvents bool
sessionsAgent any
activeUsersAgent any
eventCtx context.Context
@@ -39,6 +40,7 @@ func newCensusJob(ctx context.Context, lurEnabled bool, r db.Reader, w db.Writer
r: r,
w: w,
lurEnabled: lurEnabled,
emitEvents: false,
sessionsAgent: nil,
activeUsersAgent: nil,
eventCtx: ctx,