Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
thavlik committed Apr 29, 2020
1 parent 3440c58 commit fa32074
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scout/src/node/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Result<T> = std::result::Result<T, anyhow::Error>;
///
pub trait PoolTrait {
///
fn claim(&self, uid: Uuid, claimant: Uuid, expire: Option<Duration>) -> Result<Uuid>;
fn claim(&self, resource: Uuid, claimant: Uuid, expire: Option<Duration>) -> Result<Uuid>;
}

///
Expand All @@ -36,7 +36,7 @@ impl RedisPool {
}

impl PoolTrait for RedisPool {
fn claim(&self, uid: Uuid, claimant: Uuid, expire: Option<Duration>) -> Result<Uuid> {
fn claim(&self, resource: Uuid, claimant: Uuid, expire: Option<Duration>) -> Result<Uuid> {
let mut conn = self.pool.get()?;
// Generate a novel uid for the claim attempt
let claim_uid = Uuid::new_v4();
Expand Down

0 comments on commit fa32074

Please sign in to comment.