Skip to content

Commit

Permalink
zetcd: code consistency update
Browse files Browse the repository at this point in the history
moved mkCheckVersionPathTxnOp up 1 line to be consistent with other cases

Fixes etcd-io#98
  • Loading branch information
hokie228 committed Feb 28, 2019
1 parent c63fab4 commit 458608d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zketcd.go
Expand Up @@ -486,8 +486,8 @@ func (z *zkEtcd) Multi(xid Xid, mreq *MultiRequest) ZKResponse {
bs[i] = z.mkSetDataTxnOp(req)
mresp.Ops[i].Header.Type = opSetData
case *CheckVersionRequest:
mresp.Ops[i].Header.Type = opCheck
bs[i] = z.mkCheckVersionPathTxnOp(req)
mresp.Ops[i].Header.Type = opCheck
default:
panic(fmt.Sprintf("unknown multi %+v %T", op.Op, op.Op))
}
Expand Down

0 comments on commit 458608d

Please sign in to comment.