Skip to content

Commit 500a1ee

Browse files
committed
update comments
1 parent 8dadd0c commit 500a1ee

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

bufferflow_default.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ Loop:
3434
case data := <-b.input:
3535
m := SpPortMessage{b.port, data}
3636
message, _ := json.Marshal(m)
37-
// data is now encoded in base64 format
38-
// need a decoder on the other side
3937
b.output <- message
4038
case <-b.done:
4139
break Loop //this is required, a simple break statement would only exit the innermost switch statement

bufferflow_timed.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ Loop:
4545
if b.bufferedOutput != "" {
4646
m := SpPortMessage{b.sPort, b.bufferedOutput}
4747
buf, _ := json.Marshal(m)
48-
// data is now encoded in base64 format
49-
// need a decoder on the other side
5048
b.output <- buf
5149
// reset the buffer and the port
5250
b.bufferedOutput = ""

bufferflow_timedraw.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ Loop:
4545
if b.bufferedOutputRaw != nil {
4646
m := SpPortMessageRaw{b.sPortRaw, b.bufferedOutputRaw}
4747
buf, _ := json.Marshal(m)
48-
// data is now encoded in base64 format
49-
// need a decoder on the other side
48+
// since bufferedOutputRaw is a []byte is base64-encoded by json.Marshal() function automatically
5049
b.output <- buf
5150
// reset the buffer and the port
5251
b.bufferedOutputRaw = nil

0 commit comments

Comments
 (0)