kayleg / cloud-pubsub

Google Cloud PubSub client in rust
MIT License
31 stars 21 forks source link

First tick will return right away so we should call tick prior to doing anything else #6

Closed sync closed 4 years ago

sync commented 4 years ago

If not we would end up with 2 calls to client.refresh_token

     Running `target/debug/meet-api`
[2020-06-03T05:48:42Z INFO  meet_api] Got fresh token
Renewing pubsub token
[2020-06-03T05:48:42Z INFO  meet_backend_shared::xirsys] Making get ice servers call
Renewing pubsub token
sync commented 4 years ago

https://docs.rs/tokio/0.2.21/tokio/time/fn.interval.html