Skip to content

Commit

Permalink
support update-socket operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim committed Apr 10, 2024
1 parent 9a09336 commit a75a81a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion node/plugin/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ func NewConfig(ctx *cli.Context) (*Config, error) {
}

op := ctx.GlobalString(OperationFlag.Name)
if op != "opt-in" && op != "opt-out" && op != "list-quorums" {
if len(op) == 0 {
return nil, errors.New("operation type not provided")
}
if op != "opt-in" && op != "opt-out" && op != "update-socket" && op != "list-quorums" {
return nil, errors.New("unsupported operation type")
}

Expand Down

0 comments on commit a75a81a

Please sign in to comment.