Skip to content

Commit 3f1779f

Browse files
committed
skip first tick
1 parent 2cc2908 commit 3f1779f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/corro-pg/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ bytes = { workspace = true }
88
compact_str = { workspace = true }
99
corro-types = { path = "../corro-types" }
1010
eyre = { workspace = true }
11-
sqlite-pool = { path = "../sqlite-pool" }
1211
fallible-iterator = { workspace = true }
1312
futures = { workspace = true }
1413
hex = { workspace = true }

crates/corro-pg/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ fn parse_query(sql: &str) -> Result<VecDeque<ParsedCmd>, ParseError> {
320320
break;
321321
}
322322
Err(e) => {
323-
debug!("could not parse as sqlite {sql:?}: {e}");
323+
debug!("could not parse statement ({sql:?}) as sqlite: {e}");
324324
let stmts = sqlparser::parser::Parser::parse_sql(
325325
&sqlparser::dialect::PostgreSqlDialect {},
326326
normalized,

crates/corro-types/src/agent.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,10 @@ async fn wait_conn_drop(tx: oneshot::Sender<CancellationToken>) {
773773
}
774774

775775
let mut interval = tokio::time::interval(Duration::from_secs(5*60));
776+
// skip first tick
777+
interval.tick().await;
776778
let start = Instant::now();
779+
777780
loop {
778781
tokio::select! {
779782
_ = cancel.cancelled() => {

0 commit comments

Comments
 (0)