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 constructors to the SDK #2477

Merged
merged 4 commits into from
Dec 13, 2023
Merged

Add constructors to the SDK #2477

merged 4 commits into from
Dec 13, 2023

Conversation

joshua-kim
Copy link
Contributor

Why this should be merged

Gets rid of issues with nil pointers

How this works

Adds constructor functions

How this was tested

CI

@joshua-kim joshua-kim changed the base branch from master to refactor-client December 12, 2023 20:00
@joshua-kim joshua-kim self-assigned this Dec 12, 2023
@joshua-kim joshua-kim marked this pull request as ready for review December 12, 2023 20:00
network/p2p/handler.go Outdated Show resolved Hide resolved
network/p2p/throttler_handler.go Outdated Show resolved Hide resolved
}

func (t ThrottlerHandler) CrossChainAppRequest(ctx context.Context, chainID ids.ID, deadline time.Time, requestBytes []byte) ([]byte, error) {
return t.handler.CrossChainAppRequest(ctx, chainID, deadline, requestBytes)
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we don't want to handle this case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah... this is the same behavior as before but my thought was that it didn't make sense to throttle messages from ourselves. I think we should probably still throttle anyways, but probably in a future PR. Currently nothing is using this.

@joshua-kim joshua-kim force-pushed the add-constructors branch 2 times, most recently from 654fab9 to c8171f3 Compare December 12, 2023 21:14
@StephenButtolph StephenButtolph added this to the v1.10.18 milestone Dec 12, 2023
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
@joshua-kim joshua-kim merged commit 4a76d7f into refactor-client Dec 13, 2023
4 of 14 checks passed
@joshua-kim joshua-kim deleted the add-constructors branch December 13, 2023 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants