Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions faucet/src/faucet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ pub fn request_airdrop_transaction(
Ok(transaction)
}

#[deprecated(since = "3.1.0", note = "use `run_local_faucet_with_config` instead")]
pub fn run_local_faucet_with_port(
faucet_keypair: Keypair,
sender: Sender<Result<SocketAddr, String>>,
Expand Down Expand Up @@ -411,8 +412,10 @@ pub fn run_local_faucet_with_unique_port_for_tests(keypair: Keypair) -> SocketAd
}

// For integration tests. Listens on random open port and reports port to Sender.
#[deprecated(since = "3.1.0", note = "use `run_local_faucet_for_tests` instead")]
pub fn run_local_faucet(faucet_keypair: Keypair, per_time_cap: Option<u64>) -> SocketAddr {
let (sender, receiver) = unbounded();
#[allow(deprecated)]
run_local_faucet_with_port(faucet_keypair, sender, None, per_time_cap, None, 0);
receiver
.recv()
Expand Down
Loading