chore: remove repetitive words

Signed-off-by: racerole <jiangyifeng@outlook.com>
This commit is contained in:
racerole 2024-03-12 16:37:48 +08:00 committed by Ming Deng
parent 93f693a356
commit 29de4e3a3d
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ const (
// OffsetNewest is the log head offset, i.e. the offset that will be
// assigned to the next message that will be produced to the shard.
OffsetNewest = "end"
// OffsetOldest is the the oldest offset available on the logstore for a
// OffsetOldest is the oldest offset available on the logstore for a
// shard.
OffsetOldest = "begin"
)

View File

@ -188,7 +188,7 @@ func (bl *BeeLogger) AsyncNonBlockWrite() *BeeLogger {
}
// SetLogger provides a given logger adapter into BeeLogger with config string.
// config must in in JSON format like {"interval":360}}
// config must in JSON format like {"interval":360}}
func (bl *BeeLogger) setLogger(adapterName string, configs ...string) error {
config := append(configs, "{}")[0]
for _, l := range bl.outputs {
@ -223,7 +223,7 @@ func (bl *BeeLogger) setLogger(adapterName string, configs ...string) error {
}
// SetLogger provides a given logger adapter into BeeLogger with config string.
// config must in in JSON format like {"interval":360}}
// config must in JSON format like {"interval":360}}
func (bl *BeeLogger) SetLogger(adapterName string, configs ...string) error {
bl.lock.Lock()
defer bl.lock.Unlock()