Skip to content

Commit

Permalink
var casing
Browse files Browse the repository at this point in the history
  • Loading branch information
grqx committed Dec 27, 2024
1 parent 3be502e commit b6f96c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/session_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export class SessionManager {

const bgConfig: BgConfig = {
fetch: async (url: any, options: any): Promise<any> => {
const max_retries = 3;
for (let attempts = 1; attempts <= max_retries; attempts++) {
const maxRetries = 3;
for (let attempts = 1; attempts <= maxRetries; attempts++) {
try {
const response = await axios.post(url, options.body, {
headers: {
Expand All @@ -184,7 +184,7 @@ export class SessionManager {
},
};
} catch (e) {
if (attempts >= max_retries) {
if (attempts >= maxRetries) {
return {
ok: false,
json: async () => {
Expand Down

0 comments on commit b6f96c0

Please sign in to comment.