Skip to content

Commit f948861

Browse files
authored
log all wasm api errors, remove list all, add perf test harness,add logs for block creation (#447)
1 parent 517367b commit f948861

File tree

36 files changed

+2100
-293
lines changed

36 files changed

+2100
-293
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# 0.3.1
22

3+
* Added a caching layer for bills, heavily improving performance
4+
* Added `error` logs for all errors returned from the API for the WASM version
35
* Added `log_level` to Config, which defaults to `info`
46
* Changed the API for uploading files to bill to use `file` instead of `files`.
57
So files can only be uploaded individually, but for `issue()`, `file_upload_ids`

crates/bcr-ebill-api/src/service/bill_service/data_fetching.rs

Lines changed: 404 additions & 54 deletions
Large diffs are not rendered by default.

crates/bcr-ebill-api/src/service/bill_service/issue.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,17 @@ impl BillService {
164164
)
165165
.await?;
166166

167+
// Calculate bill and persist it to cache
168+
self.recalculate_and_persist_bill(
169+
&bill_id,
170+
&chain,
171+
&bill_keys,
172+
&identity.identity,
173+
&drawer_public_data.node_id,
174+
timestamp,
175+
)
176+
.await?;
177+
167178
// clean up temporary file uploads, if there are any, logging any errors
168179
for file_upload_id in file_upload_ids.iter() {
169180
if let Err(e) = self

0 commit comments

Comments
 (0)