Skip to content

Commit

Permalink
use async sleep in pepper
Browse files Browse the repository at this point in the history
  • Loading branch information
zjma committed Mar 2, 2024
1 parent 99060e8 commit d8173f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyless/pepper/service/src/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn start_jwk_refresh_loop(issuer: &str, jwk_url: &str, refresh_interval: Dur
warn!("{}", msg);
},
}
sleep(refresh_interval);
tokio::time::sleep(refresh_interval).await;
}
});
}
Expand Down

0 comments on commit d8173f7

Please sign in to comment.