Skip to content

Commit 0c69519

Browse files
committed
chore: use new range syntax
Signed-off-by: Christian Stewart <[email protected]>
1 parent 148ce2d commit 0c69519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpcstream/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func HandleProxyRpcStream[T RpcStream](stream RpcStream, getter RpcProxyGetter[T
8282

8383
// wait for both errors
8484
var outErr error
85-
for i := 0; i < 2; i++ {
85+
for range 2 {
8686
if err := <-errCh; err != nil && outErr == nil && err != io.EOF {
8787
outErr = err
8888
}

0 commit comments

Comments
 (0)