mirror of
https://github.com/ChronosX88/go-gun.git
synced 2024-11-23 10:52:19 +00:00
Minor README update
This commit is contained in:
parent
a5611e66b0
commit
0096207ca4
@ -44,6 +44,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
defer g.Close()
|
||||||
// Issue a fetch and get a channel for updates
|
// Issue a fetch and get a channel for updates
|
||||||
fetchCh := g.Scoped(ctx, "esgopeta-example", "sample-key").Fetch(ctx)
|
fetchCh := g.Scoped(ctx, "esgopeta-example", "sample-key").Fetch(ctx)
|
||||||
// Log all updates and exit when context times out
|
// Log all updates and exit when context times out
|
||||||
@ -89,6 +90,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
defer g.Close()
|
||||||
// Issue a simple put and wait for a single peer ack
|
// Issue a simple put and wait for a single peer ack
|
||||||
putScope := g.Scoped(ctx, "esgopeta-example", "sample-key")
|
putScope := g.Scoped(ctx, "esgopeta-example", "sample-key")
|
||||||
log.Print("Sending first value")
|
log.Print("Sending first value")
|
||||||
|
Loading…
Reference in New Issue
Block a user