Skip to content

Commit 5e83b7e

Browse files
authored
serialize request in sender (#53)
## πŸ“ Summary <!--- A general summary of your changes --> ## β›± Motivation and Context <!--- Why is this change required? What problem does it solve? --> ## πŸ“š References <!-- Any interesting external links to documentation, articles, tweets which add value to the PR --> --- ## βœ… I have run these commands * [ ] `make lint` * [ ] `make test` * [ ] `go mod tidy`
1 parent aec9dc2 commit 5e83b7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

β€Žproxy/sender_proxy.goβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ func (prx *SenderProxy) HandleParsedRequest(ctx context.Context, parsedRequest P
188188
parsedRequest.systemEndpoint = false
189189
prx.Log.Debug("Received request", slog.String("method", parsedRequest.method))
190190

191+
err := SerializeParsedRequestForSharing(&parsedRequest, prx.OrderflowSigner)
192+
if err != nil {
193+
prx.Log.Warn("Failed to serialize request for sharing", slog.Any("error", err))
194+
}
195+
191196
select {
192197
case <-ctx.Done():
193198
case prx.shareQueue <- &parsedRequest:

0 commit comments

Comments
Β (0)