mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
use write method
This commit is contained in:
parent
1457954ee3
commit
c279576ee2
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ impl Database {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Init profile components
|
// Init profile components
|
||||||
match connection.try_write() {
|
match connection.write() {
|
||||||
Ok(writable) => {
|
Ok(writable) => {
|
||||||
if let Err(reason) = init(writable) {
|
if let Err(reason) = init(writable) {
|
||||||
panic!("{reason}")
|
panic!("{reason}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue