chore: fix some typos in comments

Signed-off-by: oftenoccur <ezc5@sina.com>
This commit is contained in:
oftenoccur 2024-04-11 11:16:44 +08:00
parent 20522efba9
commit c3b9b40ee8
7 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
## Tile38 Integation Testing
## Tile38 Integration Testing
- Uses Redis protocol
- The Tile38 data is flushed before every `DoBatch`