aboutsummaryrefslogtreecommitdiffstats
path: root/examples/stream-client/stream_client.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stream-client/stream_client.go')
-rw-r--r--examples/stream-client/stream_client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/stream-client/stream_client.go b/examples/stream-client/stream_client.go
index fadfe23..f4af859 100644
--- a/examples/stream-client/stream_client.go
+++ b/examples/stream-client/stream_client.go
@@ -76,8 +76,8 @@ func main() {
// process errors encountered during the example
defer func() {
- if len(Errors) > 0 {
- fmt.Printf("finished with %d errors\n", len(Errors))
+ if len(errors) > 0 {
+ fmt.Printf("finished with %d errors\n", len(errors))
os.Exit(1)
} else {
fmt.Println("finished successfully")
@@ -294,9 +294,9 @@ Loop:
fmt.Println()
}
-var Errors []error
+var errors []error
func logError(err error, msg string) {
fmt.Printf("ERROR: %s: %v\n", msg, err)
- Errors = append(Errors, err)
+ errors = append(errors, err)
}