mirror of
https://github.com/google/gops.git
synced 2024-11-24 08:22:25 +02:00
examples/hello: simplify the minimal example
This commit is contained in:
parent
62f833fc9f
commit
467d918128
@ -12,9 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
if err := agent.Listen(&agent.Options{
|
||||
Addr: "127.0.0.1:4321",
|
||||
}); err != nil {
|
||||
if err := agent.Listen(nil); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
time.Sleep(time.Hour)
|
||||
|
Loading…
Reference in New Issue
Block a user