Skip to content

Commit

Permalink
Merge pull request #11 from iamqizhao/master
Browse files Browse the repository at this point in the history
Remove useless context setup
  • Loading branch information
yugui committed Apr 22, 2015
2 parents f69df30 + f0fe901 commit 66640d5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions examples/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66640d5

Please sign in to comment.