chore: rustfmt

This commit is contained in:
Greg Heartsfield 2022-09-02 12:38:31 -05:00
parent 4d983dd1e0
commit 1b9f364e15
3 changed files with 26 additions and 27 deletions

View File

@ -20,9 +20,9 @@ use rusqlite::params;
use rusqlite::types::ToSql; use rusqlite::types::ToSql;
use rusqlite::Connection; use rusqlite::Connection;
use rusqlite::OpenFlags; use rusqlite::OpenFlags;
use std::fmt::Write as _;
use std::path::Path; use std::path::Path;
use std::thread; use std::thread;
use std::fmt::Write as _;
use std::time::Duration; use std::time::Duration;
use std::time::Instant; use std::time::Instant;
use tokio::task; use tokio::task;

View File

@ -252,8 +252,7 @@ fn main() -> Result<(), Error> {
let (bcast_tx, _) = broadcast::channel::<Event>(broadcast_buffer_limit); let (bcast_tx, _) = broadcast::channel::<Event>(broadcast_buffer_limit);
// validated events that need to be persisted are sent to the // validated events that need to be persisted are sent to the
// database on via this channel. // database on via this channel.
let (event_tx, event_rx) = let (event_tx, event_rx) = mpsc::channel::<SubmittedEvent>(persist_buffer_limit);
mpsc::channel::<SubmittedEvent>(persist_buffer_limit);
// establish a channel for letting all threads now about a // establish a channel for letting all threads now about a
// requested server shutdown. // requested server shutdown.
let (invoke_shutdown, shutdown_listen) = broadcast::channel::<()>(1); let (invoke_shutdown, shutdown_listen) = broadcast::channel::<()>(1);