Skip to content

Commit

Permalink
Put a default expiry_time of 1hour
Browse files Browse the repository at this point in the history
Improve this do read form config variable
  • Loading branch information
ErikDeSmedt committed Mar 13, 2024
1 parent f30035d commit b11edb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/lsps-server/src/lsps1/hooks/custommsg.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use anyhow::Result;
use uuid::Uuid;
use std::time::Duration;

use lsp_primitives::methods;

Expand Down Expand Up @@ -64,7 +65,7 @@ pub(crate) async fn do_lsps1_create_order(
// Define the relevant timestamps
let now = IsoDatetime::now();
let created_at = now.clone();
let expires_at = now.clone();
let expires_at = IsoDatetime::from_offset_date_time(created_at.datetime() + Duration::from_secs(3600));

let order = typed_request.params;
order
Expand Down

0 comments on commit b11edb3

Please sign in to comment.