Skip to content

Commit

Permalink
Version 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebakken committed Sep 7, 2022
1 parent 20e949e commit 5039e19
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .ci/versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"erlang": "24.3.4",
"rabbitmq": "3.10.1"
"erlang": "25.0.4",
"rabbitmq": "3.10.7"
}
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: '1.19'
check-latest: true
- uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
go-version: [1.17.x, 1.18.x]
go-version: ['1.18', '1.19']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.17.x, 1.18.x]
go-version: ['1.18', '1.19']
services:
rabbitmq:
image: rabbitmq
Expand Down
8 changes: 4 additions & 4 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"net"
"os"
"reflect"
"strconv"
"strings"
Expand All @@ -27,8 +27,8 @@ const (

defaultHeartbeat = 10 * time.Second
defaultConnectionTimeout = 30 * time.Second
defaultProduct = "Amqp 0.9.1 Client"
buildVersion = "1.4.0"
defaultProduct = "AMQP 0.9.1 Client"
buildVersion = "1.5.0"
platform = "golang"
// Safer default that makes channel leaks a lot easier to spot
// before they create operational headaches. See https://github.com/rabbitmq/rabbitmq-server/issues/1593.
Expand Down Expand Up @@ -916,7 +916,7 @@ func (c *Connection) openComplete() error {
func tlsConfigFromURI(uri URI) (*tls.Config, error) {
var certPool *x509.CertPool
if uri.CACertFile != "" {
data, err := ioutil.ReadFile(uri.CACertFile)
data, err := os.ReadFile(uri.CACertFile)
if err != nil {
return nil, fmt.Errorf("read CA certificate: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"io/ioutil"
"log"
"net"
"os"
"runtime"
"time"

Expand Down Expand Up @@ -94,7 +94,7 @@ func ExampleDialTLS() {
// see at the top
cfg.RootCAs = x509.NewCertPool()

if ca, err := ioutil.ReadFile("testca/cacert.pem"); err == nil {
if ca, err := os.ReadFile("testca/cacert.pem"); err == nil {
cfg.RootCAs.AppendCertsFromPEM(ca)
}

Expand Down
5 changes: 2 additions & 3 deletions spec/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ import (
"encoding/xml"
"errors"
"fmt"
"io/ioutil"
"io"
"log"
"os"
"regexp"
"strings"
"text/template"
Expand Down Expand Up @@ -520,7 +519,7 @@ func export(delim *regexp.Regexp, parts ...string) (res string) {
func main() {
var r renderer

spec, err := ioutil.ReadAll(os.Stdin)
spec, err := io.ReadAll(os.Stdin)
if err != nil {
log.Fatalln("Please pass spec on stdin", err)
}
Expand Down

0 comments on commit 5039e19

Please sign in to comment.