fix: typo (#156)

This commit is contained in:
guangwu 2023-12-15 08:36:20 +08:00 committed by GitHub
parent af2db0d43f
commit 188bdff278
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ The uniq identifier for a consumer is `[appName, streamName, shardID]`
Note: The default storage is in-memory (no-op). Which means the scan will not persist any state and the consumer will start from the beginning of the stream each time it is re-started. Note: The default storage is in-memory (no-op). Which means the scan will not persist any state and the consumer will start from the beginning of the stream each time it is re-started.
The consumer accpets a `WithStore` option to set the storage layer: The consumer accepts a `WithStore` option to set the storage layer:
```go ```go
c, err := consumer.New(*stream, consumer.WithStore(db)) c, err := consumer.New(*stream, consumer.WithStore(db))
@ -132,7 +132,7 @@ To persist scan progress choose one of the following storage layers:
#### Redis #### Redis
The Redis checkpoint requries App Name, and Stream Name: The Redis checkpoint requires App Name, and Stream Name:
```go ```go
import store "github.com/harlow/kinesis-consumer/store/redis" import store "github.com/harlow/kinesis-consumer/store/redis"
@ -292,7 +292,7 @@ c, err := consumer.New(
### Logging ### Logging
Logging supports the basic built-in logging library or use thrid party external one, so long as Logging supports the basic built-in logging library or use third party external one, so long as
it implements the Logger interface. it implements the Logger interface.
For example, to use the builtin logging package, we wrap it with myLogger structure. For example, to use the builtin logging package, we wrap it with myLogger structure.