mirror of https://github.com/tidwall/tile38.git
Merge pull request #731 from oftenoccur/master
chore: fix some typos in comments
This commit is contained in:
commit
1b34db46a4
|
@ -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:
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
## Tile38 Integation Testing
|
||||
## Tile38 Integration Testing
|
||||
|
||||
- Uses Redis protocol
|
||||
- The Tile38 data is flushed before every `DoBatch`
|
||||
|
|
Loading…
Reference in New Issue