You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(audience-sdk): consolidate timing/retry constants in Constants.cs
The previous SSOT pass left twelve timing / retry constants co-located
with their owning module: HttpTransport.RequestTimeoutSeconds and
five Backoff*Ms constants, Session.HeartbeatIntervalMs / PauseTimeoutMs
/ HeartbeatDrainTimeoutMs / StartDrainTimeoutMs, and ImmutableAudience.
ConsentSyncMaxAttempts / ConsentSyncBaseRetryMs. Constants.cs already
held analogous timing / sizing knobs (DefaultFlushIntervalSeconds,
MaxBatchSize, ControlPlaneRequestTimeoutSeconds), so the split was
inconsistent.
Move all twelve into Constants.cs with module-prefixed names
(MessagesRequestTimeoutSeconds, HttpBackoff{1st,2nd,3rd,4th,Cap}Ms,
SessionHeartbeatIntervalMs, SessionPauseTimeoutMs,
SessionHeartbeatDrainTimeoutMs, SessionStartDrainTimeoutMs,
ConsentSyncMaxAttempts, ConsentSyncBaseRetryMs). Migrate runtime call
sites in HttpTransport, Session, and ImmutableAudience plus the one
test reference in SessionTests. Behaviour unchanged.
Follow-up to SDK-272 (centralisation of duplicated literals).
0 commit comments