Skip to content

Commit a1b46c7

Browse files
committed
remove unnecessary ws_url
1 parent 06a325a commit a1b46c7

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

cranker/.env.example

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
RPC_URL=https://api.devnet.solana.com
2-
WS_URL=wss://api.devnet.solana.com
32
KEYPAIR_PATH=YOUR_KEYPAIR_PATH
43
PROGRAM_ID=5TAiuAh3YGDbwjEruC1ZpXTJWdNDS7Ur7VeqNNiHMmGV
54
INTERVAL_SECONDS=60

cranker/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use ::{
3434
#[derive(Clone)]
3535
pub struct CrankerConfig {
3636
pub rpc_url: String,
37-
pub ws_url: String,
3837
pub program_id: Pubkey,
3938
pub payer: Arc<Keypair>, // Wrapped in Arc
4039
pub interval: Duration,

cranker/src/main.rs

-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ fn load_config() -> Result<CrankerConfig, Box<dyn std::error::Error>> {
1616
// Load each environment variable with better error messages
1717
let rpc_url = std::env::var("RPC_URL").map_err(|_| "RPC_URL not found in environment")?;
1818

19-
let ws_url = std::env::var("WS_URL").map_err(|_| "WS_URL not found in environment")?;
20-
2119
let keypair_path = std::env
2220
::var("KEYPAIR_PATH")
2321
.map_err(|_| "KEYPAIR_PATH not found in environment")?;
@@ -42,7 +40,6 @@ fn load_config() -> Result<CrankerConfig, Box<dyn std::error::Error>> {
4240

4341
Ok(CrankerConfig {
4442
rpc_url,
45-
ws_url,
4643
program_id,
4744
payer,
4845
interval,
@@ -73,7 +70,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
7370

7471
info!("Configuration loaded successfully:");
7572
info!("RPC URL: {}", config.rpc_url);
76-
info!("WS URL: {}", config.ws_url);
7773
info!("Program ID: {}", config.program_id);
7874
info!("Payer: {}", config.payer.as_ref().pubkey()); // Signer trait now in scope
7975
info!("Interval: {}s", config.interval.as_secs());

0 commit comments

Comments
 (0)