mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
cmd, eth, node, rpc, xeth: use single-instance services
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user