mirror of
https://github.com/ChronosX88/go-gun.git
synced 2024-11-09 12:41:00 +00:00
Minor README update
This commit is contained in:
parent
a5611e66b0
commit
0096207ca4
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user