Skip to content
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

Merged
merged 4 commits into from
Jan 18, 2024

Conversation

fibonacci998
Copy link
Member

No description provided.

return err;
});
if (foundS3Object && !overwrite) {
return;
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Member

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ý

Copy link
Member

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

Copy link
Member Author

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

Copy link
Member Author

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}`,
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@peara peara merged commit d0eeb69 into develop Jan 18, 2024
2 checks passed
@fibonacci998
Copy link
Member Author

refer #635

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants