fix: Don't panic if token is still valid
1. `None` from `update_token` should only mean "no update needed", should not be used for errors. We now panic when worker channel is not set 2. Callers should correctly handle `None` result
This commit is contained in:
committed by
GitHub
parent
d4db350000
commit
5e916fd7ec
@@ -117,8 +117,7 @@ impl WebApi {
|
||||
}
|
||||
}))
|
||||
} else {
|
||||
error!("worker channel is not set");
|
||||
None
|
||||
panic!("worker channel is not set");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user