Skip to content

Commit

Permalink
check error when raftApplyMsgpack
Browse files Browse the repository at this point in the history
  • Loading branch information
dhiaayachi committed Jul 12, 2021
1 parent 6356302 commit 4fb20c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent/consul/leader_connect_ca.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ func (c *caDelegateWithState) ApplyCALeafRequest() (uint64, error) {
Datacenter: c.Server.config.Datacenter,
}
resp, err := c.Server.raftApplyMsgpack(structs.ConnectCALeafRequestType|structs.IgnoreUnknownTypeFlag, &req)
if err != nil {
return 0, err
}

modIdx, ok := resp.(uint64)
if !ok {
Expand Down

0 comments on commit 4fb20c8

Please sign in to comment.