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

Add separate timeout flag for writer #4

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

ian-shim
Copy link
Contributor

@ian-shim ian-shim commented Feb 8, 2024

Motivation

Previously, it was using rpcTimeoutDuration as a timeout for both read & write onchain. However, there should be two distinct timeouts for read & write operations.

Solution

This PR distinguishes the two timeouts (read vs. write), and adds another flag to represent the write timeout as writing (sending transactions) onchain should take a lot longer time.

Ideally, the transaction manager in eigensdk supports retries and gas fee bumps, but this can be a temporary solution till that's supported.

@ian-shim ian-shim requested a review from samlaf February 8, 2024 00:06
Copy link
Contributor

@samlaf samlaf left a comment

Choose a reason for hiding this comment

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

Good stuff. Just one little thing to change.

avssync.go Outdated Show resolved Hide resolved
@samlaf
Copy link
Contributor

samlaf commented Feb 8, 2024

Awesome, merging.

@samlaf samlaf merged commit 127978c into master Feb 8, 2024
1 check passed
@samlaf samlaf deleted the add-writer-timeout branch February 8, 2024 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants