diff options
author | Runxi Yu <me@runxiyu.org> | 2025-01-12 11:56:16 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-01-12 11:56:16 +0800 |
commit | b99783387a4bd51eba2ea3726910011b389b7c0f (patch) | |
tree | a35fab31e8e0e8abe2a85269ec9d5c45c36183ac /main.go | |
parent | Add TLS cert configuration handling (diff) | |
download | maild-b99783387a4bd51eba2ea3726910011b389b7c0f.tar.gz maild-b99783387a4bd51eba2ea3726910011b389b7c0f.tar.zst maild-b99783387a4bd51eba2ea3726910011b389b7c0f.zip |
Use bufio.ReadWriter
Diffstat (limited to '')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ func main() { } go func() { - err := handle_incoming_server_connection(bufio.NewReader(conn), bufio.NewWriter(conn)) + err := handle_incoming_server_connection(bufio.NewReadWriter(bufio.NewReader(conn), bufio.NewWriter(conn))) if err != nil && !errors.Is(err, io.EOF) { clog.Error("connection handler returned error", "err", err) } |