Skip to content

Commit

Permalink
Add http keep-alive 60mins
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Feb 9, 2024
1 parent a6027fe commit aef1174
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
67 changes: 33 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use log::{debug, info, warn};
use controller::{create_wallet, AppState, ControllerError};
use drift_sdk::{types::CommitmentConfig, Pubkey};
use serde_json::json;
use std::{borrow::Borrow, str::FromStr, sync::Arc};
use std::{borrow::Borrow, str::FromStr, sync::Arc, time::Duration};
use types::{
CancelAndPlaceRequest, CancelOrdersRequest, GetOrderbookRequest, ModifyOrdersRequest,
PlaceOrdersRequest,
Expand Down Expand Up @@ -234,6 +234,7 @@ async fn main() -> std::io::Result<()> {
.service(get_sol_balance),
)
})
.keep_alive(Duration::from_secs(3_600))
.bind((config.host, config.port))?
.run()
.await
Expand Down

0 comments on commit aef1174

Please sign in to comment.