Skip to content

Commit 2d83311

Browse files
committed
chore(mu): add hb upload log
1 parent 0aab0f5 commit 2d83311

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

servers/mu/src/domain/clients/uploader.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,13 @@ function uploadDataItemWith ({ UPLOADER_URL, fetch, histogram, logger, HB_GRAPHQ
4343
fromPromise(({ body, res }) =>
4444
dataItemFetch(`${HB_GRAPHQL_URL}/~arweave@2.9-pre/tx?codec-device=ans104@1.0`, {
4545
method: 'POST',
46-
headers: {
47-
'Content-Type': 'application/octet-stream',
48-
Accept: 'application/json'
49-
},
5046
body
5147
})
5248
.then((HBRes) => {
53-
logger.tap({ log: 'Successfully forwarded DataItem to HB uploader' })(HBRes)
54-
return res
55-
})
56-
.catch((err) => {
57-
logger.tap({ log: 'Error while communicating with HB uploader:' })(err)
49+
logger.tap({ log: 'Successfully forwarded DataItem to HB uploader' })()
5850
return res
5951
})
52+
.catch((_) => res)
6053
)
6154
)
6255
.bimap(logger.tap({ log: 'Error while communicating with uploader:' }), identity)

0 commit comments

Comments
 (0)