Skip to content

Commit b2731fe

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Raphael Götz <52959657+raphael-goetz@users.noreply.github.com>
1 parent 75fc231 commit b2731fe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

crates/taurus/src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,17 +193,17 @@ async fn main() {
193193

194194
log::info!("For the flow_id {} returing the value {:?}", flow_id, value);
195195

196-
if let Some(usage_service) = &runtime_usage_service {
197-
usage_service.update_runtime_usage(result.1).await;
198-
}
199-
200196
// Send a response to the reply subject
201197
if let Some(reply) = msg.reply {
202198
match client.publish(reply, value.encode_to_vec().into()).await {
203199
Ok(_) => log::debug!("Response sent"),
204200
Err(err) => log::error!("Failed to send response: {:?}", err),
205201
}
206202
}
203+
204+
if let Some(usage_service) = &runtime_usage_service {
205+
usage_service.update_runtime_usage(result.1).await;
206+
}
207207
}
208208

209209
log::info!("NATS worker loop ended");

0 commit comments

Comments
 (0)