Skip to content

Commit d2b6d66

Browse files
committed
Format NetIPC Go loops for Go 1.26
1 parent c5bb10e commit d2b6d66

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/go/pkg/netipc/service/raw/increment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (c *Client) CallIncrementBatch(values []uint64) ([]uint64, error) {
139139
}
140140

141141
out := make([]uint64, itemCount)
142-
for i := uint32(0); i < itemCount; i++ {
142+
for i := range itemCount {
143143
itemData, gerr := protocol.BatchItemGet(respPayload, itemCount, i)
144144
if gerr != nil {
145145
return gerr

src/go/pkg/netipc/transport/posix/uds_stale.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func runDirAllowsStaleUnlink(runDir string) bool {
3939

4040
func dialStaleCandidate(path string) error {
4141
var err error
42-
for attempt := 0; attempt < staleDialAttempts; attempt++ {
42+
for attempt := range staleDialAttempts {
4343
var conn net.Conn
4444
conn, err = net.DialTimeout("unixpacket", path, staleDialTimeout)
4545
if err == nil {

0 commit comments

Comments
 (0)