Minor README update

This commit is contained in:
Chad Retz 2019-02-26 16:07:17 -06:00
parent a5611e66b0
commit 0096207ca4

View File

@ -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")