Skip to content

Commit

Permalink
feat: remove the Chan type
Browse files Browse the repository at this point in the history
It's not used anywhere and it makes go-vet unhappy due to the
ReadFrom/WriteTo signatures. These could be fixed, but maintianing this
code isn't worth it.
  • Loading branch information
Stebalien committed Aug 3, 2021
1 parent 7083218 commit f269528
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 222 deletions.
109 changes: 0 additions & 109 deletions chan.go

This file was deleted.

113 changes: 0 additions & 113 deletions chan_test.go

This file was deleted.

6 changes: 6 additions & 0 deletions msgio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import (
"time"
)

func randBuf(r *rand.Rand, size int) []byte {
buf := make([]byte, size)
_, _ = r.Read(buf)
return buf
}

func TestReadWrite(t *testing.T) {
buf := bytes.NewBuffer(nil)
writer := NewWriter(buf)
Expand Down

0 comments on commit f269528

Please sign in to comment.