4141 io:: { stdin, stdout, Write } ,
4242 ops:: Deref ,
4343 process:: exit,
44+ rc:: Rc ,
4445 str:: FromStr ,
45- sync:: Arc ,
4646 } ,
4747 thiserror:: Error ,
4848} ;
@@ -242,7 +242,7 @@ impl DefaultSigner {
242242 & self ,
243243 bulk_signers : Vec < Option < Box < dyn Signer > > > ,
244244 matches : & ArgMatches < ' _ > ,
245- wallet_manager : & mut Option < Arc < RemoteWalletManager > > ,
245+ wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
246246 ) -> Result < CliSignerInfo , Box < dyn error:: Error > > {
247247 let mut unique_signers = vec ! [ ] ;
248248
@@ -304,7 +304,7 @@ impl DefaultSigner {
304304 pub fn signer_from_path (
305305 & self ,
306306 matches : & ArgMatches ,
307- wallet_manager : & mut Option < Arc < RemoteWalletManager > > ,
307+ wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
308308 ) -> Result < Box < dyn Signer > , Box < dyn std:: error:: Error > > {
309309 signer_from_path ( matches, self . path ( ) ?, & self . arg_name , wallet_manager)
310310 }
@@ -357,7 +357,7 @@ impl DefaultSigner {
357357 pub fn signer_from_path_with_config (
358358 & self ,
359359 matches : & ArgMatches ,
360- wallet_manager : & mut Option < Arc < RemoteWalletManager > > ,
360+ wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
361361 config : & SignerFromPathConfig ,
362362 ) -> Result < Box < dyn Signer > , Box < dyn std:: error:: Error > > {
363363 signer_from_path_with_config (
@@ -686,7 +686,7 @@ pub fn signer_from_path(
686686 matches : & ArgMatches ,
687687 path : & str ,
688688 keypair_name : & str ,
689- wallet_manager : & mut Option < Arc < RemoteWalletManager > > ,
689+ wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
690690) -> Result < Box < dyn Signer > , Box < dyn error:: Error > > {
691691 let config = SignerFromPathConfig :: default ( ) ;
692692 signer_from_path_with_config ( matches, path, keypair_name, wallet_manager, & config)
@@ -753,7 +753,7 @@ pub fn signer_from_path_with_config(
753753 matches : & ArgMatches ,
754754 path : & str ,
755755 keypair_name : & str ,
756- wallet_manager : & mut Option < Arc < RemoteWalletManager > > ,
756+ wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
757757 config : & SignerFromPathConfig ,
758758) -> Result < Box < dyn Signer > , Box < dyn error:: Error > > {
759759 let SignerSource {
@@ -860,7 +860,7 @@ pub fn pubkey_from_path(
860860 matches : & ArgMatches ,
861861 path : & str ,
862862 keypair_name : & str ,
863- wallet_manager : & mut Option < Arc < RemoteWalletManager > > ,
863+ wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
864864) -> Result < Pubkey , Box < dyn error:: Error > > {
865865 let SignerSource { kind, .. } = parse_signer_source ( path) ?;
866866 match kind {
@@ -873,7 +873,7 @@ pub fn resolve_signer_from_path(
873873 matches : & ArgMatches ,
874874 path : & str ,
875875 keypair_name : & str ,
876- wallet_manager : & mut Option < Arc < RemoteWalletManager > > ,
876+ wallet_manager : & mut Option < Rc < RemoteWalletManager > > ,
877877) -> Result < Option < String > , Box < dyn error:: Error > > {
878878 let SignerSource {
879879 kind,
0 commit comments