Skip to content

Commit

Permalink
feat: Allow None expiration in Agent::delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus23 committed Mar 28, 2024
1 parent 8269f54 commit 7dec84c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/delegation/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ where
command: String,
new_policy: Vec<Predicate>,
metadata: BTreeMap<String, Ipld>,
expiration: Timestamp,
expiration: Option<Timestamp>,
not_before: Option<Timestamp>,
now: SystemTime,
varsig_header: V,
Expand Down Expand Up @@ -96,8 +96,8 @@ where
command,
metadata,
nonce,
expiration: expiration.into(),
not_before: not_before.map(Into::into),
expiration,
not_before,
policy,
};

Expand Down

0 comments on commit 7dec84c

Please sign in to comment.