Skip to content

Commit

Permalink
repair: fix duration comments
Browse files Browse the repository at this point in the history
  • Loading branch information
two-heart authored and lidatong committed Dec 5, 2024
1 parent d63510f commit e11a852
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/flamenco/repair/fd_repair.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ typedef uint fd_repair_nonce_t;
/* Active table element. This table is all validators that we are
asking for repairs. */
struct fd_active_elem {
fd_pubkey_t key; /* Public indentifier and map key */
fd_pubkey_t key; /* Public identifier and map key */
ulong next; /* used internally by fd_map_giant */

fd_repair_peer_addr_t addr;
Expand Down Expand Up @@ -452,7 +452,7 @@ fd_repair_sign_and_send( fd_repair_t * glob,
static void
fd_repair_send_requests( fd_repair_t * glob ) {
/* Garbage collect old requests */
long expire = glob->now - (long)5000e6; /* 1 seconds */
long expire = glob->now - (long)5e9; /* 5 seconds */
fd_repair_nonce_t n;
for ( n = glob->oldest_nonce; n != glob->next_nonce; ++n ) {
fd_needed_elem_t * ele = fd_needed_table_query( glob->needed, &n, NULL );
Expand Down Expand Up @@ -576,7 +576,7 @@ static void fd_actives_shuffle( fd_repair_t * repair );
int
fd_repair_continue( fd_repair_t * glob ) {
fd_repair_lock( glob );
if ( glob->now - glob->last_sends > (long)1e6 ) { /* 10 millisecs */
if ( glob->now - glob->last_sends > (long)1e6 ) { /* 1 millisecond */
fd_repair_send_requests( glob );
glob->last_sends = glob->now;
}
Expand Down

0 comments on commit e11a852

Please sign in to comment.