chore: remove repetitive words
Signed-off-by: racerole <jiangyifeng@outlook.com>
This commit is contained in:
parent
93f693a356
commit
29de4e3a3d
@ -7,7 +7,7 @@ const (
|
|||||||
// OffsetNewest is the log head offset, i.e. the offset that will be
|
// 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.
|
// assigned to the next message that will be produced to the shard.
|
||||||
OffsetNewest = "end"
|
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.
|
// shard.
|
||||||
OffsetOldest = "begin"
|
OffsetOldest = "begin"
|
||||||
)
|
)
|
||||||
|
|||||||
@ -188,7 +188,7 @@ func (bl *BeeLogger) AsyncNonBlockWrite() *BeeLogger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SetLogger provides a given logger adapter into BeeLogger with config string.
|
// 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 {
|
func (bl *BeeLogger) setLogger(adapterName string, configs ...string) error {
|
||||||
config := append(configs, "{}")[0]
|
config := append(configs, "{}")[0]
|
||||||
for _, l := range bl.outputs {
|
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.
|
// 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 {
|
func (bl *BeeLogger) SetLogger(adapterName string, configs ...string) error {
|
||||||
bl.lock.Lock()
|
bl.lock.Lock()
|
||||||
defer bl.lock.Unlock()
|
defer bl.lock.Unlock()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user