Skip to content

Commit

Permalink
Update UTs, READMEs and remove useless debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Sep 18, 2019
1 parent 72131fd commit 42211b2
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ Source code in `gnet` is available under the MIT [License](/LICENSE).

- [evio](https://github.com/tidwall/evio)
- [go-disruptor](https://github.com/smartystreets-prototypes/go-disruptor)
- [eviop](https://github.com/Allenxuxu/eviop)

# TODO

Expand Down
1 change: 1 addition & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ Go Version : go version go1.12.9 darwin/amd64

- [evio](https://github.com/tidwall/evio)
- [go-disruptor](https://github.com/smartystreets-prototypes/go-disruptor)
- [eviop](https://github.com/Allenxuxu/eviop)

# 待做事项

Expand Down
4 changes: 0 additions & 4 deletions conn_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ type conn struct {
}

func (c *conn) sendOut(buf []byte) {
//if !c.outBuf.IsFull() && !c.outBuf.IsEmpty() {
// _, _ = c.outBuf.Write(buf)
// return
//}
n, err := syscall.Write(c.fd, buf)
if err != nil {
_, _ = c.outBuf.Write(buf)
Expand Down
2 changes: 1 addition & 1 deletion gnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func testServe(network, addr string, unix, reuseport bool, multicore bool, nclie
out = inBuf.Bytes()
inBuf.Advance(n)

if reuseport {
if !reuseport {
c.Wake()
}
return
Expand Down
2 changes: 0 additions & 2 deletions gnet_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ func activateReactors(svr *server, numLoops int) {
numLoops = 3
}

//fmt.Printf("=============================starts %d loops...\n", numLoops)

svr.wg.Add(1 + (numLoops-1)/2)

for i := 0; i < (numLoops-1)/2; i++ {
Expand Down

0 comments on commit 42211b2

Please sign in to comment.