Skip to content

Commit

Permalink
address pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Sep 20, 2024
1 parent b40b009 commit c2c0efa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions x-pack/filebeat/input/streaming/crowdstrike.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"errors"
"fmt"
"io"
"log"
"net/http"
"net/url"
"strconv"
Expand Down Expand Up @@ -203,11 +202,11 @@ func (s *falconHoseStream) followSession(ctx context.Context, cli *http.Client,
if offset > 0 {
feedURL, err := url.Parse(r.FeedURL)
if err != nil {
log.Fatalf("failed to parse feed url: %v", err)
return state, Warning{fmt.Errorf("failed to parse feed url: %w", err)}
}
feedQuery, err := url.ParseQuery(feedURL.RawQuery)
if err != nil {
log.Fatalf("failed to parse feed query: %v", err)
return state, Warning{fmt.Errorf("failed to parse feed query: %v", err)}
}
feedQuery.Set("offset", strconv.Itoa(offset))
feedURL.RawQuery = feedQuery.Encode()
Expand Down

0 comments on commit c2c0efa

Please sign in to comment.