Skip to content

Commit

Permalink
Merge branch 'feat/add-metric-docs-and-rename' of github.com:ceramicn…
Browse files Browse the repository at this point in the history
…etwork/ceramic-anchor-service into feat/add-metric-docs-and-rename
  • Loading branch information
gvelez17 committed Apr 18, 2024
2 parents a8a964c + 49e87b7 commit daa108d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ function buildBodyDigest(contentType: string | undefined, body: any): string | u
if (contentType.includes('application/vnd.ipld.car')) {
const carFactory = new CARFactory()
carFactory.codecs.add(DAG_JOSE)
console.log('Will build a car file from req.body', body)
try {
console.log('Will build a car file from req.body (as utf8 string)', u8a.toString(body, 'base64'))
} catch(e) {
console.log('Couldn\'t convert req.body to string: ', e)
}
// console.log('Will build a car file from req.body', body)
// try {
// console.log('Will build a car file from req.body (as utf8 string)', u8a.toString(body, 'base64'))
// } catch(e) {
// console.log('Couldn\'t convert req.body to string: ', e)
// }
const car = carFactory.fromBytes(body)
if (!car.roots[0]) throw Error('Missing CAR root')
return car.roots[0].toString()
Expand Down
1 change: 0 additions & 1 deletion src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export enum METRIC_NAMES {
ANCHOR_REQUESTS_BATCH_TIME = 'anchor_requests_batch_time',
ANCHOR_REQUESTS_BATCH_FAILURE_TIME = 'anchor_requests_batch_failure_time',


// *******************************************************************//
// Request Service
WRITE_TOTAL_TSDB = 'write_total_tsdb', // note _tsdb implies handles high cardinality
Expand Down

0 comments on commit daa108d

Please sign in to comment.