Added more code to the managers module

This commit is contained in:
kdeng00
2024-05-12 17:36:00 -04:00
parent de9602f1a0
commit 7c84ce9a35
3 changed files with 83 additions and 7 deletions
+6 -1
View File
@@ -2,7 +2,9 @@ use std::collections::HashMap;
use std::default::Default;
use std::fs::File;
use std::io::{Read, Error};
use tokio::runtime::Runtime;
use futures::{FutureExt, TryFutureExt};
use serde::{Deserialize, Serialize};
use crate::{exit_program, managers};
@@ -184,7 +186,10 @@ impl CommitManager {
api: api.clone(),
};
return tok_mgr.request_token();
// let token = tok_mgr.request_token();
let token = Runtime::new().unwrap().block_on(tok_mgr.request_token());
return token.unwrap();
}
// TODO: Implement
fn upload_song_with_metadata(&self) {