Skip to content

Commit

Permalink
Added scheme validation for nodemon
Browse files Browse the repository at this point in the history
  • Loading branch information
esuwu committed Dec 20, 2024
1 parent 25c999c commit 604b27a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/nodemon/nodemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ func (c *nodemonConfig) validate(logger *zap.Logger) error {
logger.Error("Invalid polling interval", zap.Stringer("interval", c.interval))
return errInvalidParameters
}
if c.scheme == "" {
logger.Error("Empty blockchain scheme", zap.String("scheme", c.scheme))
return errInvalidParameters
}
if c.timeout <= 0 {
logger.Error("Invalid network timeout", zap.Stringer("timeout", c.timeout))
return errInvalidParameters
Expand Down

0 comments on commit 604b27a

Please sign in to comment.