Skip to content

Commit

Permalink
Merge pull request #731 from oftenoccur/master
Browse files Browse the repository at this point in the history
chore: fix some typos in comments
  • Loading branch information
tidwall authored Jun 4, 2024
2 parents 51e6862 + c3b9b40 commit 1b34db4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion internal/endpoint/local.go
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion internal/field/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/field/list_binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion internal/server/checksum.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Tile38 Integation Testing
## Tile38 Integration Testing

- Uses Redis protocol
- The Tile38 data is flushed before every `DoBatch`
Expand Down

0 comments on commit 1b34db4

Please sign in to comment.