mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-04 06:53:06 +00:00
doc: fix node.New examples
This commit is contained in:
parent
47cdb86aaf
commit
49baff14cd
@ -15,15 +15,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
...
|
...
|
||||||
wakuNode, err := node.New(context.Background(),
|
wakuNode, err := node.New(node.WithWakuFilter(false))
|
||||||
node.WithWakuFilter(false),
|
|
||||||
)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := wakuNode.Start(); err != nil {
|
if err := wakuNode.Start(context.Background()); err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,15 +25,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
...
|
...
|
||||||
wakuNode, err := node.New(context.Background(),
|
wakuNode, err := node.New(node.WithLightPush())
|
||||||
node.WithLightPush(),
|
|
||||||
)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := wakuNode.Start(); err != nil {
|
if err := wakuNode.Start(context.Background()); err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,15 +16,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
...
|
...
|
||||||
wakuNode, err := node.New(context.Background(),
|
wakuNode, err := node.New(node.WithWakuRelay())
|
||||||
node.WithWakuRelay(),
|
|
||||||
)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := wakuNode.Start(); err != nil {
|
if err := wakuNode.Start(context.Background()); err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user