Skip to content

Commit

Permalink
Use range loop instead of endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
marco6 committed Jul 10, 2024
1 parent 7523be9 commit 9354d85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ func New(dir string, options ...Option) (app *App, err error) {

} else if o.Conn != nil {
go func() {
for {
remote := <-o.Conn.acceptCh
for remote := range o.Conn.acceptCh {

// keep forward compatible
_, isTcp := remote.(*net.TCPConn)
Expand Down

0 comments on commit 9354d85

Please sign in to comment.