Skip to content

Commit

Permalink
revert unintentional delete
Browse files Browse the repository at this point in the history
  • Loading branch information
cynicaljoy committed Oct 23, 2024
1 parent 2bedb10 commit 668c44f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,22 @@ func (c *Client) parseQueryURL() (*url.URL, error) {
return c.queryURL, nil
}

func (c *Client) parseStreamURL() (*url.URL, error) {
if c.streamURL == nil {
if streamURL, err := url.Parse(c.url); err != nil {
return nil, err
} else {
c.streamURL = streamURL.JoinPath("stream", "1")
}
}

if c.streamURL == nil {
return nil, fmt.Errorf("stream url is not set")
}

return c.streamURL, nil
}

func (c *Client) parseFeedURL() (*url.URL, error) {
if c.feedURL == nil {
if feedURL, err := url.Parse(c.url); err != nil {
Expand Down

0 comments on commit 668c44f

Please sign in to comment.