mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
Play with online notification timing again
This commit is contained in:
parent
b1faebae4a
commit
ff8da9d246
2 changed files with 6 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ void PostgreSQL::onlineNotification_Redis()
|
||||||
|
|
||||||
fprintf(stderr, "onlineNotification ran in %llu ms\n", total);
|
fprintf(stderr, "onlineNotification ran in %llu ms\n", total);
|
||||||
|
|
||||||
std::this_thread::sleep_for(std::chrono::seconds(1));
|
std::this_thread::sleep_for(std::chrono::seconds(5));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -288,6 +288,7 @@ impl ZeroIDC {
|
||||||
t.claims().registered.clone();
|
t.claims().registered.clone();
|
||||||
match claims.expiration {
|
match claims.expiration {
|
||||||
Some(exp) => {
|
Some(exp) => {
|
||||||
|
println!("exp: {}", exp);
|
||||||
(*inner_local
|
(*inner_local
|
||||||
.lock()
|
.lock()
|
||||||
.unwrap())
|
.unwrap())
|
||||||
|
@ -297,6 +298,8 @@ impl ZeroIDC {
|
||||||
panic!("expiration is None. This shouldn't happen")
|
panic!("expiration is None. This shouldn't happen")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
panic!("error parsing claims");
|
||||||
}
|
}
|
||||||
|
|
||||||
(*inner_local.lock().unwrap())
|
(*inner_local.lock().unwrap())
|
||||||
|
@ -592,6 +595,8 @@ impl ZeroIDC {
|
||||||
panic!("expiration is None. This shouldn't happen");
|
panic!("expiration is None. This shouldn't happen");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
panic!("Failed to parse token");
|
||||||
}
|
}
|
||||||
|
|
||||||
i.access_token = Some(tok.access_token().clone());
|
i.access_token = Some(tok.access_token().clone());
|
||||||
|
|
Loading…
Add table
Reference in a new issue