From 0096207ca460ce0be4499d0e2b05585551710d7e Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Tue, 26 Feb 2019 16:07:17 -0600 Subject: [PATCH] Minor README update --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8f36ee2..02ee948 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ func main() { if err != nil { log.Panic(err) } + defer g.Close() // Issue a fetch and get a channel for updates fetchCh := g.Scoped(ctx, "esgopeta-example", "sample-key").Fetch(ctx) // Log all updates and exit when context times out @@ -89,6 +90,7 @@ func main() { if err != nil { log.Panic(err) } + defer g.Close() // Issue a simple put and wait for a single peer ack putScope := g.Scoped(ctx, "esgopeta-example", "sample-key") log.Print("Sending first value")