aboutsummaryrefslogtreecommitdiffstats
path: root/node/node_example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'node/node_example_test.go')
-rw-r--r--node/node_example_test.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/node/node_example_test.go b/node/node_example_test.go
index f2bd014b0..898d4f5bc 100644
--- a/node/node_example_test.go
+++ b/node/node_example_test.go
@@ -35,8 +35,8 @@ import (
type SampleService struct{}
func (s *SampleService) Protocols() []p2p.Protocol { return nil }
-func (s *SampleService) Start() error { fmt.Println("Sample service starting..."); return nil }
-func (s *SampleService) Stop() error { fmt.Println("Sample service stopping..."); return nil }
+func (s *SampleService) Start(*p2p.Server) error { fmt.Println("Service starting..."); return nil }
+func (s *SampleService) Stop() error { fmt.Println("Service stopping..."); return nil }
func ExampleUsage() {
// Create a network node to run protocols with the default values. The below list
@@ -80,8 +80,8 @@ func ExampleUsage() {
log.Fatalf("Failed to stop the protocol stack: %v", err)
}
// Output:
- // Sample service starting...
- // Sample service stopping...
- // Sample service starting...
- // Sample service stopping...
+ // Service starting...
+ // Service stopping...
+ // Service starting...
+ // Service stopping...
}