From c80ab856137a2686bb3e8ae3e18c82bbf75f8ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Milo=C5=A1evi=C4=87?= Date: Wed, 3 Jun 2020 09:41:11 +0200 Subject: [PATCH] Fix typo in error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ivan Milošević --- pkg/transformers/senml/transformer.go | 2 +- readers/cassandra/messages.go | 2 +- readers/influxdb/messages.go | 2 +- readers/mongodb/messages.go | 2 +- readers/postgres/messages.go | 2 +- writers/cassandra/messages.go | 2 +- writers/influxdb/messages.go | 2 +- writers/mongodb/messages.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pkg/transformers/senml/transformer.go b/pkg/transformers/senml/transformer.go index ed192690ea..a4098c9e5c 100644 --- a/pkg/transformers/senml/transformer.go +++ b/pkg/transformers/senml/transformer.go @@ -19,7 +19,7 @@ const ( var ( errDecode = errors.New("failed to decode senml") - errNormalize = errors.New("faled to normalize senml") + errNormalize = errors.New("failed to normalize senml") ) var formats = map[string]senml.Format{ diff --git a/readers/cassandra/messages.go b/readers/cassandra/messages.go index 11d373032e..876ec5096b 100644 --- a/readers/cassandra/messages.go +++ b/readers/cassandra/messages.go @@ -12,7 +12,7 @@ import ( "github.com/mainflux/mainflux/readers" ) -var errReadMessages = errors.New("faled to read messages from cassandra database") +var errReadMessages = errors.New("failed to read messages from cassandra database") var _ readers.MessageRepository = (*cassandraRepository)(nil) diff --git a/readers/influxdb/messages.go b/readers/influxdb/messages.go index 1f6e45cf00..1f58899615 100644 --- a/readers/influxdb/messages.go +++ b/readers/influxdb/messages.go @@ -17,7 +17,7 @@ import ( const countCol = "count" -var errReadMessages = errors.New("faled to read messages from influxdb database") +var errReadMessages = errors.New("failed to read messages from influxdb database") var _ readers.MessageRepository = (*influxRepository)(nil) diff --git a/readers/mongodb/messages.go b/readers/mongodb/messages.go index 1a4970eb0d..f79d708740 100644 --- a/readers/mongodb/messages.go +++ b/readers/mongodb/messages.go @@ -16,7 +16,7 @@ import ( const collection = "mainflux" -var errReadMessages = errors.New("faled to read messages from mongodb database") +var errReadMessages = errors.New("failed to read messages from mongodb database") var _ readers.MessageRepository = (*mongoRepository)(nil) diff --git a/readers/postgres/messages.go b/readers/postgres/messages.go index d4131ae3fb..9f23d6d398 100644 --- a/readers/postgres/messages.go +++ b/readers/postgres/messages.go @@ -14,7 +14,7 @@ import ( const errInvalid = "invalid_text_representation" -var errReadMessages = errors.New("faled to read messages from postgres database") +var errReadMessages = errors.New("failed to read messages from postgres database") var _ readers.MessageRepository = (*postgresRepository)(nil) diff --git a/writers/cassandra/messages.go b/writers/cassandra/messages.go index 4a5003bcfb..937eca4c94 100644 --- a/writers/cassandra/messages.go +++ b/writers/cassandra/messages.go @@ -10,7 +10,7 @@ import ( "github.com/mainflux/mainflux/writers" ) -var errSaveMessage = errors.New("faled to save message to cassandra database") +var errSaveMessage = errors.New("failed to save message to cassandra database") var _ writers.MessageRepository = (*cassandraRepository)(nil) diff --git a/writers/influxdb/messages.go b/writers/influxdb/messages.go index 7a27b923d9..7085493d80 100644 --- a/writers/influxdb/messages.go +++ b/writers/influxdb/messages.go @@ -17,7 +17,7 @@ import ( const pointName = "messages" -var errSaveMessage = errors.New("faled to save message to influxdb database") +var errSaveMessage = errors.New("failed to save message to influxdb database") var _ writers.MessageRepository = (*influxRepo)(nil) diff --git a/writers/mongodb/messages.go b/writers/mongodb/messages.go index f08a2a5fa5..9c80524e04 100644 --- a/writers/mongodb/messages.go +++ b/writers/mongodb/messages.go @@ -15,7 +15,7 @@ import ( const collectionName string = "mainflux" -var errSaveMessage = errors.New("faled to save message to mongodb database") +var errSaveMessage = errors.New("failed to save message to mongodb database") var _ writers.MessageRepository = (*mongoRepo)(nil)