Fix typo in error messages (#1193)

Signed-off-by: Ivan Milošević <iva@blokovi.com>
This commit is contained in:
Ivan Milošević 2020-06-03 17:34:01 +02:00 committed by GitHub
parent ea3a891c91
commit f1ee9d0665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -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{

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)