Propagate context to requests

This commit is contained in:
2022-05-12 17:13:44 -07:00
parent af77b121f8
commit 3bcc01fdb6
3 changed files with 53 additions and 18 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"context"
"encoding/gob"
"net"
@@ -33,5 +34,5 @@ func main() {
s.Register(Arith{})
ln, _ := net.Listen("tcp", ":9090")
s.Serve(ln, codec.Gob)
s.Serve(context.Background(), ln, codec.Gob)
}