use fast binary_search for some const slices
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
52693db477
commit
6c96acc482
6 changed files with 41 additions and 39 deletions
|
@ -40,7 +40,7 @@ struct CheckForUpdatesResponseEntry {
|
|||
|
||||
const CHECK_FOR_UPDATES_URL: &str = "https://pupbrain.dev/check-for-updates/stable";
|
||||
const CHECK_FOR_UPDATES_INTERVAL: u64 = 7200; // 2 hours
|
||||
const LAST_CHECK_FOR_UPDATES_COUNT: &[u8] = b"u";
|
||||
const LAST_CHECK_FOR_UPDATES_COUNT: &[u8; 1] = b"u";
|
||||
|
||||
#[async_trait]
|
||||
impl crate::Service for Service {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue