Skip to content

Commit

Permalink
Merge pull request #25 from CoLearn-Dev/registry-fixes
Browse files Browse the repository at this point in the history
- registry fixes
  • Loading branch information
stneng authored Aug 17, 2022
2 parents 8b78730 + 8e53874 commit 7e4299e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "colink-server"
version = "0.1.8"
version = "0.1.9"
edition = "2021"

[dependencies]
Expand Down
6 changes: 3 additions & 3 deletions src/service/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl crate::server::MyService {
protocol_param: payload,
participants: vec![Participant {
user_id: user_id.to_string(),
role: "query".to_string(),
role: "query_from_registries".to_string(),
}],
require_agreement: false,
status: "started".to_string(),
Expand All @@ -468,10 +468,10 @@ impl crate::server::MyService {
self.add_task_new_status(user_id, &local_task).await?;
drop(task_storage_mutex);
}
// We choose 1 second as the retry interval and retry 30 times.
// We choose 1 second as the retry interval and retry 60 times.
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
counter += 1;
if counter > 30 {
if counter > 60 {
break;
}
}
Expand Down

0 comments on commit 7e4299e

Please sign in to comment.