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 0994935 commit cc6058a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ func (c *Client) parseQueryURL() (*url.URL, error) {
return c.queryURL, nil
}

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

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 cc6058a

Please sign in to comment.