mirror of
https://github.com/n08i40k/schedule-parser-rusted.git
synced 2025-12-06 09:47:50 +03:00
Исправление тестов.
FCMClient теперь не инициализируется, если отсутствует требуемая переменная окружения.
This commit is contained in:
@@ -78,6 +78,8 @@ pub async fn set_token(
|
||||
// Subscribe to default topics.
|
||||
if let Some(e) = app_state
|
||||
.fcm_client
|
||||
.as_ref()
|
||||
.unwrap()
|
||||
.async_scope(
|
||||
async |client: &mut FCMClient| -> Result<(), TopicManagementError> {
|
||||
let mut tokens: Vec<String> = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user