Skip to content

Commit

Permalink
postgres: use Batcher::by_seconds instead of Batcher::by_secs
Browse files Browse the repository at this point in the history
  • Loading branch information
bigherc18 authored and fracek committed Mar 9, 2024
1 parent 1f43660 commit 147288b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion sinks/sink-mongo/tests/test_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use apibara_core::node::v1alpha2::{Cursor, DataFinality};
use apibara_sink_common::{batching::Buffer, Context, CursorAction, Sink, ValueExt};
use apibara_sink_mongo::{MongoSink, SinkMongoError, SinkMongoOptions};


use error_stack::{Result, ResultExt};
use futures_util::TryStreamExt;
use mongodb::bson::{doc, Bson, Document};
Expand Down
2 changes: 1 addition & 1 deletion sinks/sink-postgres/src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl Sink for PostgresSink {

let client = client_from_config(&config).await?;

let batcher = Batcher::by_secs(config.batch_seconds);
let batcher = Batcher::by_seconds(config.batch_seconds);

info!("client connected successfully");

Expand Down

0 comments on commit 147288b

Please sign in to comment.