mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Optimize for-loop iteration: exit early when httpOnly is true
```
for _, sctx := range e.sctxs {
if sctx.httpOnly {
splitHTTP = true
break
}
}
```
Signed-off-by: cfanbo <haohtml@gmail.com>