Update dependency filesize to v10.1.1 #116
7
geneit_app/package-lock.json
generated
7
geneit_app/package-lock.json
generated
@ -2734,10 +2734,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/filesize": {
|
||||
"version": "10.1.0",
|
||||
"resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.0.tgz",
|
||||
"integrity": "sha512-GTLKYyBSDz3nPhlLVPjPWZCnhkd9TrrRArNcy8Z+J2cqScB7h2McAzR6NBX6nYOoWafql0roY8hrocxnZBv9CQ==",
|
||||
"license": "BSD-3-Clause",
|
||||
"version": "10.1.1",
|
||||
"resolved": "https://registry.npmjs.org/filesize/-/filesize-10.1.1.tgz",
|
||||
"integrity": "sha512-L0cdwZrKlwZQkMSFnCflJ6J2Y+5egO/p3vgRSDQGxQt++QbUZe5gMbRO6kg6gzwQDPvq2Fk9AmoxUNfZ5gdqaQ==",
|
||||
"engines": {
|
||||
"node": ">= 10.4.0"
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ use diesel::result::{DatabaseErrorKind, Error};
|
||||
use diesel::{Connection, PgConnection};
|
||||
use std::cell::RefCell;
|
||||
thread_local! {
|
||||
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = RefCell::new(None);
|
||||
static POSTGRES_CONNECTION: RefCell<Option<PgConnection>> = const { RefCell::new(None) };
|
||||
}
|
||||
|
||||
/// Execute a request on the database
|
||||
|
@ -7,7 +7,7 @@ use std::cell::RefCell;
|
||||
use std::time::Duration;
|
||||
|
||||
thread_local! {
|
||||
static REDIS_CONNECTION: RefCell<Option<redis::Client>> = RefCell::new(None);
|
||||
static REDIS_CONNECTION: RefCell<Option<redis::Client>> = const { RefCell::new(None) };
|
||||
}
|
||||
|
||||
/// Execute a request on Redis
|
||||
|
Loading…
Reference in New Issue
Block a user