Skip to content

Commit

Permalink
remove a duplicated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Dec 20, 2020
1 parent 2225d25 commit 07ad03f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,11 @@ func main() {
if err != nil {
log.Fatalf("%+v", err)
}
if !config.Quiet {
log.Println("accepted an TCP conn:", p1.RemoteAddr())
}
idx := rr % numconn

// do auto expiration && reconnection
if muxes[idx].session == nil || muxes[idx].session.IsClosed() ||
(config.AutoExpire > 0 && time.Now().After(muxes[idx].expiryDate)) {
(config.AutoExpire > 0 && time.Now().After(muxes[idx].expiryDate)) {
muxes[idx].session = waitConn()
muxes[idx].expiryDate = time.Now().Add(time.Duration(config.AutoExpire) * time.Second)
if config.AutoExpire > 0 { // only when autoexpire set
Expand Down

0 comments on commit 07ad03f

Please sign in to comment.