Skip to content

Commit

Permalink
add const / fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jun 5, 2024
1 parent ee16055 commit b82d348
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions tunnels/client/preconnect/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
enum
{
kPreconnectDelayShort = 10,
kPreconnectDelayHigh = 750
kPreconnectDelayLong = 750
};

static void addConnection(thread_box_t *box, preconnect_client_con_state_t *con)
Expand Down Expand Up @@ -100,7 +100,7 @@ static void initiateConnect(tunnel_t *self, bool delay)
ev.userdata = cg;
cg->t = self;
cg->tid = tid;
cg->delay = delay ? kPreconnectDelayHigh : kPreconnectDelayShort;
cg->delay = delay ? kPreconnectDelayLong : kPreconnectDelayShort;

hloop_post_event(worker_loop, &ev);
}
8 changes: 4 additions & 4 deletions tunnels/client/reverse/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
enum
{
kPreconnectDelayShort = 10,
kPreconnectDelayHigh = 750,
kConnectionStarvationTimeOut = 3000,
kConnectionStarvationTimeOutAfterFirstConfirmation = 15000
kPreconnectDelayLong = 750,
kConnectionStarvationTimeOut = 15000,
kConnectionStarvationTimeOutAfterFirstConfirmation = 5000
};

static void onLinePausedU(void *cstate)
Expand Down Expand Up @@ -135,7 +135,7 @@ static void initiateConnect(tunnel_t *self, uint8_t tid, bool delay)
ev.userdata = cg;
cg->t = self;
cg->tid = tid;
cg->delay = delay ? kPreconnectDelayHigh : kPreconnectDelayShort;
cg->delay = delay ? kPreconnectDelayLong : kPreconnectDelayShort;

hloop_post_event(worker_loop, &ev);
}
Expand Down
2 changes: 1 addition & 1 deletion ww/ww.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static HTHREAD_ROUTINE(worker_thread) // NOLINT
return 0;
}

void createWW(ww_construction_data_t init_data)
void createWW(const ww_construction_data_t init_data)
{
if (init_data.core_logger_data.log_file_path)
{
Expand Down

0 comments on commit b82d348

Please sign in to comment.