From 5eccc122e8838ae8cdd3570716727a6b1b93d4a2 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 9 Jan 2017 09:52:26 +0100 Subject: [PATCH] build, node: fix go vet nits --- build/update-license.go | 2 +- node/node_example_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/update-license.go b/build/update-license.go index f3335b1196..cc713aa6c3 100644 --- a/build/update-license.go +++ b/build/update-license.go @@ -185,7 +185,7 @@ func getFiles() []string { files = append(files, line) }) if err != nil { - log.Fatalf("error getting files:", err) + log.Fatal("error getting files:", err) } return files } diff --git a/node/node_example_test.go b/node/node_example_test.go index 7c586452f4..d2872cf381 100644 --- a/node/node_example_test.go +++ b/node/node_example_test.go @@ -41,7 +41,7 @@ func (s *SampleService) APIs() []rpc.API { 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() { +func ExampleService() { // Create a network node to run protocols with the default values. The below list // is only used to display each of the configuration options. All of these could // have been omitted if the default behavior is desired.