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

tmessi-cp-monthly-active-users
Timothy Messier 2 years ago
parent 4ba30cfc65
commit 03dc96f59b
No known key found for this signature in database
GPG Key ID: EFD2F184F7600572

@ -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,

Loading…
Cancel
Save