It does indeed commit suicide
This commit is contained in:
parent
fc21a8b0e6
commit
0bcdfcc77a
|
@ -47,11 +47,9 @@ async fn resolve_spotify(
|
||||||
resource_type: &str,
|
resource_type: &str,
|
||||||
resource_id: &str,
|
resource_id: &str,
|
||||||
) -> anyhow::Result<String> {
|
) -> anyhow::Result<String> {
|
||||||
// uncomment this if titlebot commits suicide after exactly 30 minutes
|
if spotify.token.lock().await.unwrap().as_ref().unwrap().is_expired() {
|
||||||
|
|
||||||
/*if spotify.token.lock().await.unwrap().as_ref().unwrap().is_expired() {
|
|
||||||
spotify.request_token().await?;
|
spotify.request_token().await?;
|
||||||
}*/
|
}
|
||||||
tracing::debug!(
|
tracing::debug!(
|
||||||
"Resolving Spotify resource '{}' with id '{}'",
|
"Resolving Spotify resource '{}' with id '{}'",
|
||||||
resource_type,
|
resource_type,
|
||||||
|
|
Loading…
Reference in a new issue