Skip to content

Commit

Permalink
Align function names to make more sense with the existing ones
Browse files Browse the repository at this point in the history
  • Loading branch information
polespinasa committed May 19, 2024
1 parent f1d0333 commit b041291
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/grouphug-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ fn handle_client(mut stream: TcpStream) {
}
}

fn check_time(){
fn close_group_by_time(){
// Check that the creation timestamp of a group + the max_time (in secs) is lower than the actual time, if not, close the group
let actual_time: i64 = Utc::now().timestamp();

Expand Down Expand Up @@ -315,9 +315,9 @@ fn main() {
// Check if need to close groups because of time conditions every 30seconds
thread::spawn(|| {
loop {
check_time();
close_group_by_time();
close_group_by_fee();
thread::sleep(Duration::from_secs(30));
thread::sleep(Duration::from_secs(60));
}
});

Expand Down

0 comments on commit b041291

Please sign in to comment.