From c3b9b40ee82a03fc04e3208823d2cf2ce3a73e24 Mon Sep 17 00:00:00 2001 From: oftenoccur Date: Thu, 11 Apr 2024 11:16:44 +0800 Subject: [PATCH] chore: fix some typos in comments Signed-off-by: oftenoccur --- README.md | 2 +- internal/endpoint/local.go | 2 +- internal/field/field.go | 2 +- internal/field/list_binary.go | 2 +- internal/server/checksum.go | 2 +- internal/server/server.go | 2 +- tests/README.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 35f533df..d648b6b9 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,7 @@ These can be used when establishing a geofence, to pre-filter responses. For ins ### Pub/sub channels -Tile38 supports delivering geofence notications over pub/sub channels. +Tile38 supports delivering geofence notifications over pub/sub channels. To create a static geofence that sends notifications when a bus is within 200 meters of a point and sends to the `busstop` channel: diff --git a/internal/endpoint/local.go b/internal/endpoint/local.go index 2c1c7d6d..055ad43e 100644 --- a/internal/endpoint/local.go +++ b/internal/endpoint/local.go @@ -1,6 +1,6 @@ package endpoint -// LocalPublisher is used to publish local notifcations +// LocalPublisher is used to publish local notifications type LocalPublisher interface { Publish(channel string, message ...string) int } diff --git a/internal/field/field.go b/internal/field/field.go index a14d9d89..ec739cbf 100644 --- a/internal/field/field.go +++ b/internal/field/field.go @@ -116,7 +116,7 @@ func stringLessInsensitive(a, b string) bool { } // Less return true if a value is less than another value. -// The caseSensitive paramater is used when the value are Strings. +// The caseSensitive parameter is used when the value are Strings. // The order when comparing two different kinds is: // // Null < False < Number < String < True < JSON diff --git a/internal/field/list_binary.go b/internal/field/list_binary.go index bebb6f16..2ef3eb31 100644 --- a/internal/field/list_binary.go +++ b/internal/field/list_binary.go @@ -22,7 +22,7 @@ import ( // vdata: (size,data) -- value data, string data // useSharedNames will results in smaller memory usage by sharing the names -// of fields using the sstring package. Otherwise the names are embeded with +// of fields using the sstring package. Otherwise the names are embedded with // the list. const useSharedNames = true diff --git a/internal/server/checksum.go b/internal/server/checksum.go index 3b612923..9008dd9e 100644 --- a/internal/server/checksum.go +++ b/internal/server/checksum.go @@ -216,7 +216,7 @@ func (s *Server) followCheckSome(addr string, followc int, auth string, return pos, nil } log.Warnf("truncating aof to %d", pos) - // any errror below are fatal. + // any error below are fatal. s.aof.Close() if err := os.Truncate(fname, pos); err != nil { log.Fatalf("could not truncate aof, possible data loss. %s", err.Error()) diff --git a/internal/server/server.go b/internal/server/server.go index 26c4e5fd..af04bb58 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -62,7 +62,7 @@ type commandDetails struct { old *object.Object // previous object, if any updated bool // object was updated - timestamp time.Time // timestamp when the update occured + timestamp time.Time // timestamp when the update occurred parent bool // when true, only children are forwarded pattern string // PDEL key pattern children []*commandDetails // for multi actions such as "PDEL" diff --git a/tests/README.md b/tests/README.md index 7640e54a..ac82805a 100644 --- a/tests/README.md +++ b/tests/README.md @@ -1,4 +1,4 @@ -## Tile38 Integation Testing +## Tile38 Integration Testing - Uses Redis protocol - The Tile38 data is flushed before every `DoBatch`