Skip to content

Commit

Permalink
handle unimplemented method issuing error
Browse files Browse the repository at this point in the history
  • Loading branch information
VjeraTurk committed Feb 24, 2025
1 parent e1de653 commit d37717c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion internal/messaging/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ func (p *messageProcessor) ProcessIncomingLocalMessageAndGetResponse(
}
p.logger.Infof("responseMsg before processing %v", responseMsg.Content)
if err := p.responseHandler.ProcessRequestMessage(ctx, responseMsg, requestMsg.Content); err != nil {
// TODO: @VjeraTurk or AddErrorToResponseHeader earlier?!
p.responseHandler.AddErrorToResponseHeader(responseMsg.Content, err.Error())
return ctx, responseMsg, fmt.Errorf("failed to process request message: %w", err)
}
Expand Down
3 changes: 2 additions & 1 deletion internal/messaging/response_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package messaging
import (
"context"
"crypto/ecdsa"
"fmt"
"log"
"time"

Expand Down Expand Up @@ -127,7 +128,7 @@ func (h *evmResponseHandler) ProcessRequestMessage(
/*
Cancellation messages will serve as an example of this type
*/
return nil
return fmt.Errorf("method ProcessRequestMessage: not implemented")
}

// Prepares response by performing any necessary modifications to it.
Expand Down

0 comments on commit d37717c

Please sign in to comment.