File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
1
#[ tokio:: main]
2
2
async fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
3
3
env_logger:: init ( ) ;
4
- let authentication_manager = gcp_auth:: init ( ) . await ?;
4
+ let authentication_manager = gcp_auth:: AuthenticationManager :: new ( ) . await ?;
5
5
let _token = authentication_manager
6
6
. get_token ( & [ "https://www.googleapis.com/auth/cloud-platform" ] )
7
7
. await ?;
Original file line number Diff line number Diff line change @@ -75,10 +75,3 @@ pub use authentication_manager::AuthenticationManager;
75
75
pub use custom_service_account:: CustomServiceAccount ;
76
76
pub use error:: Error ;
77
77
pub use types:: { Signer , Token } ;
78
-
79
- /// Initialize GCP authentication
80
- ///
81
- /// This is a convenience wrapper around [`AuthenticationManager::new()`].
82
- pub async fn init ( ) -> Result < AuthenticationManager , Error > {
83
- AuthenticationManager :: new ( ) . await
84
- }
You can’t perform that action at this time.
0 commit comments