|
16 | 16 | solana_metrics::datapoint_info,
|
17 | 17 | solana_native_token::lamports_to_sol,
|
18 | 18 | solana_packet::PACKET_DATA_SIZE,
|
19 |
| - solana_pubkey::Pubkey, |
| 19 | + solana_pubkey::{Pubkey, PubkeyHasherBuilder}, |
20 | 20 | solana_signer::Signer,
|
21 | 21 | solana_system_interface::instruction::transfer,
|
22 | 22 | solana_transaction::Transaction,
|
@@ -90,7 +90,7 @@ pub enum FaucetTransaction {
|
90 | 90 | pub struct Faucet {
|
91 | 91 | faucet_keypair: Keypair,
|
92 | 92 | ip_cache: HashMap<IpAddr, u64>,
|
93 |
| - address_cache: HashMap<Pubkey, u64>, |
| 93 | + address_cache: HashMap<Pubkey, u64, PubkeyHasherBuilder>, |
94 | 94 | pub time_slice: Duration,
|
95 | 95 | per_time_cap: Option<u64>,
|
96 | 96 | per_request_cap: Option<u64>,
|
@@ -134,7 +134,7 @@ impl Faucet {
|
134 | 134 | Self {
|
135 | 135 | faucet_keypair,
|
136 | 136 | ip_cache: HashMap::new(),
|
137 |
| - address_cache: HashMap::new(), |
| 137 | + address_cache: HashMap::with_hasher(PubkeyHasherBuilder::default()), |
138 | 138 | time_slice,
|
139 | 139 | per_time_cap,
|
140 | 140 | per_request_cap,
|
|
0 commit comments