2525 str:: FromStr ,
2626 } ,
2727 tokio:: { fs, time:: Duration } ,
28- yellowstone_shield_store:: { PolicyStoreConfig , PolicyStoreGrpcConfig , PolicyStoreRpcConfig , ShieldStoreCommitmentLevel } ,
28+ yellowstone_shield_store:: {
29+ PolicyStoreConfig , PolicyStoreGrpcConfig , PolicyStoreRpcConfig , ShieldStoreCommitmentLevel ,
30+ } ,
2931} ;
3032
3133pub const DEFAULT_TPU_CONNECTION_POOL_SIZE : usize = 1 ;
@@ -177,7 +179,10 @@ pub struct ConfigUpstream {
177179 pub stake_update_interval : Duration ,
178180
179181 /// Shield Program ID (Optional, default to yellowstone-shield-store default)
180- #[ serde( default , deserialize_with = "ConfigUpstream::deserialize_maybe_program_id" ) ]
182+ #[ serde(
183+ default ,
184+ deserialize_with = "ConfigUpstream::deserialize_maybe_program_id"
185+ ) ]
181186 pub program_id : Option < Pubkey > ,
182187}
183188
@@ -187,11 +192,9 @@ impl ConfigUpstream {
187192 D : Deserializer < ' de > ,
188193 {
189194 match Option :: < String > :: deserialize ( deserializer) ? {
190- Some ( program_id_str) => {
191- Pubkey :: from_str ( & program_id_str)
192- . map ( Some )
193- . map_err ( de:: Error :: custom)
194- }
195+ Some ( program_id_str) => Pubkey :: from_str ( & program_id_str)
196+ . map ( Some )
197+ . map_err ( de:: Error :: custom) ,
195198 None => Ok ( None ) ,
196199 }
197200 }
0 commit comments