Skip to content

Commit 3ffae33

Browse files
committed
dialers/op: s/->/=>
1 parent e36400f commit 3ffae33

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

intra/dialers/op.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func writeTCPSplit(w net.Conn, hello []byte) (n int, err error) {
8181
log.E("op: splits: TCP2 %s (%d): err %v", to, len(second), err)
8282
return p + q, err
8383
}
84-
log.D("op: splits: %s->%s; TCP: %d/%d,%d/%d", from, to, p, len(first), q, len(second))
84+
log.D("op: splits: %s=>%s; TCP: %d/%d,%d/%d", from, to, p, len(first), q, len(second))
8585

8686
return p + q, nil
8787
}
@@ -94,7 +94,7 @@ func writeTCPOrTLSSplit(w net.Conn, hello []byte) (n int, err error) {
9494

9595
if len(hello) <= 1 {
9696
n, err = w.Write(hello)
97-
log.D("op: splits: %s->%s; len(hello) <= 1; n: %d; err: %v", from, to, n, err)
97+
log.D("op: splits: %s=>%s; len(hello) <= 1; n: %d; err: %v", from, to, n, err)
9898
return
9999
}
100100

@@ -157,7 +157,7 @@ func writeTCPOrTLSSplit(w net.Conn, hello []byte) (n int, err error) {
157157
binary.BigEndian.PutUint16(parcel[3:5], uint16(recordSplit1Len))
158158
n, err = w.Write(parcel[:p])
159159
if err != nil {
160-
log.E("op: Splits: %s->%s; TLS1 %d/%d; n: %d; err: %v", from, to, splitLen, len(hello), n, err)
160+
log.E("op: Splits: %s=>%s; TLS1 %d/%d; n: %d; err: %v", from, to, splitLen, len(hello), n, err)
161161
return
162162
}
163163

@@ -171,11 +171,11 @@ func writeTCPOrTLSSplit(w net.Conn, hello []byte) (n int, err error) {
171171
// discount repeated 5-byte header from total bytes
172172
n += max(m-aux, 0)
173173

174-
logeif(err)("op: splits: %s->%s; TLS2 %d/%d; n: %d, m: %d; err: %v",
174+
logeif(err)("op: splits: %s=>%s; TLS2 %d/%d; n: %d, m: %d; err: %v",
175175
from, to, splitLen, len(hello), n, m, err)
176176
// if n > len(hello); return len(hello) to avoid confusion with the callers
177177
// that expect bytes written to be equal to the length of the input buffer.
178-
// splits: [:f29]:55476->[:f5e]:443; TLS2 51/2048; n: 2053; err: <nil>
178+
// splits: [:f29]:55476=>[:f5e]:443; TLS2 51/2048; n: 2053; err: <nil>
179179
// F c.upload: [11] runtime error: slice bounds out of range [:2053] with capacity 2048
180180
// from: dialers.(*retrier).sendCopyHello
181181
return min(n, len(hello)), err

0 commit comments

Comments
 (0)