Skip to content

Commit 2de78aa

Browse files
committed
chore: add logs, increase amount of db connections
1 parent 7fadc04 commit 2de78aa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

core/node/da_dispatcher/src/da_dispatcher.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,15 @@ impl DataAvailabilityDispatcher {
125125

126126
/// Polls the data availability layer for inclusion data, and saves it in the database.
127127
async fn poll_for_inclusion(&self) -> anyhow::Result<()> {
128+
tracing::debug!("Polling for inclusion data");
128129
let mut conn = self.pool.connection_tagged("da_dispatcher").await?;
129130
let blob_info = conn
130131
.data_availability_dal()
131132
.get_first_da_blob_awaiting_inclusion()
132133
.await?;
133134
drop(conn);
134135

136+
tracing::debug!("Got blob_info: {:?}", blob_info);
135137
let Some(blob_info) = blob_info else {
136138
return Ok(());
137139
};
@@ -152,6 +154,7 @@ impl DataAvailabilityDispatcher {
152154
Some(InclusionData { data: vec![] })
153155
};
154156

157+
tracing::debug!("inclusion_data.is_some(): {:?}", inclusion_data.is_some());
155158
let Some(inclusion_data) = inclusion_data else {
156159
return Ok(());
157160
};
@@ -165,6 +168,10 @@ impl DataAvailabilityDispatcher {
165168
.await?;
166169
drop(conn);
167170

171+
tracing::debug!(
172+
"Saved inclusion data for batch_number: {}",
173+
blob_info.l1_batch_number
174+
);
168175
let inclusion_latency = Utc::now().signed_duration_since(blob_info.sent_at);
169176
if let Ok(latency) = inclusion_latency.to_std() {
170177
METRICS.inclusion_latency.observe(latency);

core/node/node_framework/src/implementations/layers/da_dispatcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ impl WiringLayer for DataAvailabilityDispatcherLayer {
5353

5454
async fn wire(self, input: Self::Input) -> Result<Self::Output, WiringError> {
5555
// A pool with size 2 is used here because there are 2 functions within a task that execute in parallel
56-
let master_pool = input.master_pool.get_custom(2).await?;
56+
let master_pool = input.master_pool.get_custom(4).await?;
5757
let da_client = input.da_client.0;
5858

5959
if let Some(limit) = da_client.blob_size_limit() {

0 commit comments

Comments
 (0)