Skip to content

Commit

Permalink
Revert "fixed memory leak"
Browse files Browse the repository at this point in the history
This reverts commit 0148d77.
  • Loading branch information
ChuckCrawford committed Aug 4, 2022
1 parent eae029d commit 0273685
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion change_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ func (c *Client) CreateChangeEventWithContext(ctx context.Context, e ChangeEvent
bytes.NewBuffer(data),
nil,
)
defer resp.Body.Close()
if err != nil {
return nil, err
}
Expand Down
1 change: 0 additions & 1 deletion event_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ func (c *Client) ManageEventWithContext(ctx context.Context, e *V2Event) (*V2Eve
}

resp, err := c.doWithEndpoint(ctx, c.v2EventsAPIEndpoint, http.MethodPost, "/v2/enqueue", false, bytes.NewBuffer(data), nil)
defer resp.Body.Close()
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0273685

Please sign in to comment.