Skip to content

Commit

Permalink
handle pulllogsMeta is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
泓逸 committed May 28, 2024
1 parent bb33c90 commit 572bb7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions log_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ func (s *LogStore) GetLogsBytes(shardID int, cursor, endCursor string,
// Deprecated: use GetLogsBytesWithQuery instead
func (s *LogStore) GetLogsBytesV2(plr *PullLogRequest) ([]byte, string, error) {
out, plm, err := s.GetLogsBytesWithQuery(plr)
if err != nil {
return nil, "", err
}
return out, plm.NextCursor, err
}

Expand Down Expand Up @@ -655,6 +658,9 @@ func (s *LogStore) PullLogs(shardID int, cursor, endCursor string,
// Deprecated: use PullLogsWithQuery instead
func (s *LogStore) PullLogsV2(plr *PullLogRequest) (*LogGroupList, string, error) {
gl, plm, err := s.PullLogsWithQuery(plr)
if err != nil {
return nil, "", err
}
return gl, plm.NextCursor, err
}

Expand Down

0 comments on commit 572bb7d

Please sign in to comment.