Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <[email protected]>
  • Loading branch information
joshua-kim committed Nov 16, 2023
1 parent 8158ea6 commit 472f525
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion message/inbound_msg_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func InboundAppRequestFailed(
return &inboundMessage{
nodeID: nodeID,
op: AppRequestFailedOp,
message: &p2p.AppRequestFailed{
message: &p2p.AppError{
ChainId: chainID[:],
RequestId: requestID,
ErrorCode: errorCode,
Expand Down
10 changes: 2 additions & 8 deletions snow/engine/common/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@ import (
var (
_ error = (*AppError)(nil)

// ErrUnexpected is a default error used to signal unexpected behavior
ErrUnexpected = &AppError{
Code: 0,
Message: "unexpected error",
}

// ErrTimeout is used to signal a response timeout
ErrTimeout = &AppError{
Code: 1,
Code: -1,
Message: "timed out",
}
)
Expand Down Expand Up @@ -519,7 +513,7 @@ type InternalHandler interface {
// AppError is an application-defined error
type AppError struct {
// Code is application-defined and should be used for error matching
Code uint32
Code int32
// Message is a human-readable error message
Message string
}
Expand Down

0 comments on commit 472f525

Please sign in to comment.