aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-12 11:56:16 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-12 11:56:16 +0800
commitb99783387a4bd51eba2ea3726910011b389b7c0f (patch)
treea35fab31e8e0e8abe2a85269ec9d5c45c36183ac /main.go
parentAdd TLS cert configuration handling (diff)
downloadmaild-b99783387a4bd51eba2ea3726910011b389b7c0f.tar.gz
maild-b99783387a4bd51eba2ea3726910011b389b7c0f.tar.zst
maild-b99783387a4bd51eba2ea3726910011b389b7c0f.zip
Use bufio.ReadWriter
Diffstat (limited to '')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 94f195e..c2ee302 100644
--- a/main.go
+++ b/main.go
@@ -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)
}