Skip to content

Commit

Permalink
Update interface check syntax. Initialize logger
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkaplan13 committed Nov 7, 2023
1 parent c73a5a1 commit a6a2bcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion peers/external_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"go.uber.org/zap"
)

var _ router.ExternalHandler = (*RelayerExternalHandler)(nil)
var _ router.ExternalHandler = &RelayerExternalHandler{}

// Note: all of the external handler's methods are called on peer goroutines. It
// is possible for multiple concurrent calls to happen with different NodeIDs.
Expand Down
3 changes: 2 additions & 1 deletion relayer/canonical_validator_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"go.uber.org/zap"
)

var _ validators.State = (*CanonicalValidatorClient)(nil)
var _ validators.State = &CanonicalValidatorClient{}

// CanonicalValidatorClient wraps platformvm.Client and implements validators.State
type CanonicalValidatorClient struct {
Expand All @@ -24,6 +24,7 @@ type CanonicalValidatorClient struct {
func NewCanonicalValidatorClient(logger logging.Logger, client platformvm.Client) *CanonicalValidatorClient {
return &CanonicalValidatorClient{
client: client,
logger: logger,
}
}

Expand Down

0 comments on commit a6a2bcb

Please sign in to comment.