Skip to content

Commit

Permalink
[refactor] restructure module to have 2 separate cmd pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsucho committed Dec 21, 2023
1 parent 6e81f67 commit 5bc8fc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ func main() {
log.Fatal(err)
}
file, err := conn.(*net.TCPConn).File()
defer file.Close()
if err != nil {
log.Fatal(err)
}
go handleConnection(conn, int(file.Fd()))
}
}

0 comments on commit 5bc8fc0

Please sign in to comment.