From f0fe901796a91ffc81ac5fff384bd7fc96897af4 Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Wed, 22 Apr 2015 15:24:57 -0700 Subject: [PATCH] Remove useless context setup --- examples/server/main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/server/main.go b/examples/server/main.go index 2eaec00a73c..a010f349e3a 100644 --- a/examples/server/main.go +++ b/examples/server/main.go @@ -166,10 +166,6 @@ func (s *_ABitOfEverythingServer) BulkEcho(stream examples.ABitOfEverythingServi } func run() error { - ctx := context.Background() - ctx, cancel := context.WithCancel(ctx) - defer cancel() - l, err := net.Listen("tcp", ":9090") if err != nil { return err