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

Fix remove unused features #97

Merged
merged 7 commits into from
Aug 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add a SendRelay function
  • Loading branch information
adshmh committed Aug 9, 2024
commit de8cb0ba9e222aa9e7879f37d88fc2a2a6cc6f7c
7 changes: 7 additions & 0 deletions relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ func (r *Relayer) buildRelay(
}, nil
}

// SendRelay uses RelayWithCtx to send a relay.
// This function is only introduced to make it easier to read the code using the SDK.
// TODO_TECHDEBT: Both `Relay` and `RelayWithCtx` should be deprecated and removed once their functionality is moved here, to be replaced by `SendRelay`.
func (r *Relayer) SendRelay(ctx context.Context, input *Input) (*Output, error) {
return r.RelayWithCtx(ctx, input, nil)
}

// Relay does relay request with given input
// Will always return with an output that includes the status code from the request
func (r *Relayer) Relay(input *Input, options *provider.RelayRequestOptions) (*Output, error) {
Expand Down
Loading