docs(log_store.go): fix typo
fix typo
This commit is contained in:
parent
edc0260560
commit
bdb7e7a904
@ -79,7 +79,7 @@ func (s *LogStore) PutLogs(lg *LogGroup) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compresse body with lz4
|
// Compress body with lz4
|
||||||
out := make([]byte, lz4.CompressBound(body))
|
out := make([]byte, lz4.CompressBound(body))
|
||||||
n, err := lz4.Compress(body, out)
|
n, err := lz4.Compress(body, out)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -239,7 +239,7 @@ func (s *LogStore) GetLogsBytes(shardID int, cursor string,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// LogsBytesDecode decodes logs binary data retruned by GetLogsBytes API
|
// LogsBytesDecode decodes logs binary data returned by GetLogsBytes API
|
||||||
func LogsBytesDecode(data []byte) (gl *LogGroupList, err error) {
|
func LogsBytesDecode(data []byte) (gl *LogGroupList, err error) {
|
||||||
gl = &LogGroupList{}
|
gl = &LogGroupList{}
|
||||||
err = proto.Unmarshal(data, gl)
|
err = proto.Unmarshal(data, gl)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user