From 28e4142a75a3d404a439042fa4b6c63032ebf4dd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 12 Sep 2022 14:37:48 +0000 Subject: [PATCH 1/3] Bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c05265b..8251ef8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - uses: actions/setup-dotnet@v2 @@ -102,7 +102,7 @@ jobs: restore-keys: | ${{ runner.os }}-nuget - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 @@ -171,7 +171,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -297,7 +297,7 @@ jobs: MAJORMINORPATCH: ${{ needs.build.outputs.majorMinorPatch }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 From 95809fc95c0cc39c446f7f9176eda6cf938035b1 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Fri, 30 Sep 2022 14:20:52 -0700 Subject: [PATCH 2/3] gh-78 Makes sure the connection is created before accessing Signed-off-by: Victor Chang --- src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs b/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs index 760d6a4..03eed52 100644 --- a/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs +++ b/src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs @@ -73,7 +73,10 @@ public IModel CreateChannel(string hostName, string username, string password, s }, (updateKey, updateConnection) => { - if (updateConnection.Value.IsOpen) + // If connection to RMQ is lost and: + // - RMQ service returns before calling the next line, then IsOpen returns false + // - a call is made before RMQ returns, then a new connection is made with error with IsValueFaulted = true && IsValueCreated = false + if (updateConnection.IsValueCreated && updateConnection.Value.IsOpen) { return updateConnection; } From 586cb5c4e825dc310aa5a99a3dff7c7085e52dd4 Mon Sep 17 00:00:00 2001 From: Victor Chang Date: Fri, 30 Sep 2022 14:23:44 -0700 Subject: [PATCH 3/3] Fix homebrew Signed-off-by: Victor Chang --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01c1f41..b85478c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,9 @@ jobs: with: dotnet-version: "6.0.x" + - name: Enable Homebrew + run: echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH + - name: Install License Finder tool with Homebrew uses: tecoli-com/actions-use-homebrew-tools@v0 with: