From 53c24ea952f82cdddd2eb6e3ab264d588449bd09 Mon Sep 17 00:00:00 2001 From: Don Cote Date: Mon, 7 Oct 2019 10:55:32 -0400 Subject: [PATCH] skip getting unread count --- record.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/record.go b/record.go index 0cf3655..5af5fe0 100644 --- a/record.go +++ b/record.go @@ -58,13 +58,6 @@ func (c Client) GetUnreadCount() (*int32, error) { // GetNextRecord returns the topic's next record. Will return nil without an error when there are no more records. func (c Client) GetNextRecord(consumerID string) (*Record, error) { - count, err := c.GetUnreadCount() - if err != nil { - return nil, err - } else if *count == 0 { - return nil, nil - } - url := fmt.Sprintf("%s/topics/%s/records/next?consumer_id=%s&api_key=%s", c.BaseURL, c.TopicSlug, consumerID, c.APIKey) req, _ := http.NewRequest("GET", url, nil) req.Header.Add("content-type", "application/json")