Skip to content

Commit

Permalink
fix: flush with timeout not respected by retries
Browse files Browse the repository at this point in the history
This method should best effort post and finish within the given timeout
  • Loading branch information
tore-statsig authored Aug 2, 2024
1 parent 2bc69cb commit 578b161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StatsigServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ export default class StatsigServer {
const controller = new AbortController();
const handle = setTimeout(() => controller.abort(), timeout);
flushPromise = this._logger
.flush(false, controller.signal)
.flush(true, controller.signal)
.then(() => clearTimeout(handle));
} else {
flushPromise = this._logger.flush(false);
Expand Down

0 comments on commit 578b161

Please sign in to comment.