tiny refactor
This commit is contained in:
1 parent
b49c3d5951
commit
b07cf729b2
1 file changed
+1
-1
@@ -139,7 +139,7 @@ func (ne *NonEncryptor) AppendFrame(frame *ForwardedFrame) {
|
|||||||
bufTail = bufTail[2:]
|
bufTail = bufTail[2:]
|
||||||
copy(bufTail, frame.frame)
|
copy(bufTail, frame.frame)
|
||||||
ne.bufTail = bufTail[frameLen:]
|
ne.bufTail = bufTail[frameLen:]
|
||||||
ne.buffered = ne.buffered + srcLen + dstLen + 2 + frameLen
|
ne.buffered += srcLen + dstLen + 2 + frameLen
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ne *NonEncryptor) TotalLen() int {
|
func (ne *NonEncryptor) TotalLen() int {
|
||||||
|
|||||||
Reference in new issue
Block a user