Skip to content

Commit

Permalink
Update gjrc/CHANGELOG.md and gjrc/module.go for new version 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CI Build committed Feb 21, 2024
1 parent 297e173 commit 1fc270d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions gjrc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# consu/gjrc changelog

## 2024-02-21 - v0.2.2

### Fixed/Improvement

- Improvement: Handle custom request timeout value.

## 2023-05-10 - v0.2.1

- Add function `GjrcResponse.Unmarshal(interface{}) error`.
Expand Down
2 changes: 1 addition & 1 deletion gjrc/gjrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *Gjrc) Do(req *http.Request) *GjrcResponse {

// buildContext creates is a convenience function to create a context and handle timeout.
//
// @Available since <<VERSION>>
// @Available since v0.2.2
func (c *Gjrc) buildContext(metadata RequestMeta) context.Context {
ctx := context.Background()
if metadata.Timeout > 0 {
Expand Down
2 changes: 1 addition & 1 deletion gjrc/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ package gjrc

const (
// Version defines version number of this package
Version = "0.2.1"
Version = "0.2.2"
)

// This file contains module's metadata only, which is package level documentation and module Version string.
Expand Down

0 comments on commit 1fc270d

Please sign in to comment.