diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-11-27 00:35:44 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-11-27 17:06:12 +0800 |
commit | 3e1000fda3424d880bc43ebbb16d8a33447d4182 (patch) | |
tree | fdc37470cba9af3a00e7eeaa02895b5166ddcd27 /node/node_example_test.go | |
parent | 1e806c4c775bd98b224eb0249007502d348e737b (diff) | |
download | go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.gz go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.bz2 go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.lz go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.xz go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.tar.zst go-tangerine-3e1000fda3424d880bc43ebbb16d8a33447d4182.zip |
cmd, eth, node, rpc, xeth: use single-instance services
Diffstat (limited to 'node/node_example_test.go')
-rw-r--r-- | node/node_example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/node_example_test.go b/node/node_example_test.go index 898d4f5bc..2f9b49a56 100644 --- a/node/node_example_test.go +++ b/node/node_example_test.go @@ -66,7 +66,7 @@ func ExampleUsage() { constructor := func(context *node.ServiceContext) (node.Service, error) { return new(SampleService), nil } - if err := stack.Register("my sample service", constructor); err != nil { + if err := stack.Register(constructor); err != nil { log.Fatalf("Failed to register service: %v", err) } // Boot up the entire protocol stack, do a restart and terminate |