-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upload raw log block to s3 #591
Conversation
src/common/utils/utils.ts
Outdated
return err; | ||
}); | ||
if (foundS3Object && !overwrite) { | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chỗ này nên log là bị duplicate ra, vì chắc là có vấn đề mới duplicate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chỗ này nằm ngoài service nên ko có logger à?
vậy thì nên throw rồi để hàm gọi nó tự xử lý
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log như này có hiện ra ko ko biết
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw ra ngoài thì chỗ Promise.all có thể fail luôn cả job đó anh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Utils.uploadDataToS3( | ||
block.height.toString(), | ||
s3Client, | ||
`rawlog/${config.chainId}/block/${block.height}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thêm đc network name sau rawlog
ko?
với cả block -> blocks
ví dụ:
rawlog/aura/xstaxy-1/blocks/12341234
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lại phải tạo thêm biến trong config.json nên em không thêm network name đâu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thêm vào đi cho đẹp, nhỡ có chain nào dở hơi nó để tên trùng
cơ mà bên network.json
cũng đang ko có tên chain, kể ra cũng hơi thiếu nhưng chưa thấy dùng ở đâu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
refer #635 |
No description provided.