-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow connection to multiple address simultaneously (#31)
* add SharedSubscriptionPredicate * add MultiConnectionMode option * resubscribe on address updates to shared subscriptions * add go 1.21 to test matrix * add logging interface * use wrapped subscriber to avoid unnecessary map writes * add multierror messages * handle execOneRandom case for resuming subscriptions * handle execOneRoundRobin case for publishes * remove go 1.19 from runners * log error when reloading multiple clients * use different clientID for different connections * take mutex lock while connecting clients too * add suffix explicitly post checking base value * log credential fetch errors
- Loading branch information
1 parent
5f1f085
commit 56a982e
Showing
30 changed files
with
1,678 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ on: | |
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
container: golang:1.20 | ||
container: golang:1.21 | ||
strategy: | ||
matrix: | ||
go-version: [1.19.x, 1.20.x] | ||
go-version: [1.20.x, 1.21.x] | ||
services: | ||
mqtt: | ||
image: emqx/emqx:latest | ||
|
@@ -34,14 +34,14 @@ jobs: | |
uses: actions/cache@v3 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
${{ runner.os }}-go-${{ matrix.go-version }}- | ||
- name: Tools bin cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: .bin | ||
key: ${{ runner.os }}-${{ hashFiles('Makefile') }} | ||
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('Makefile') }} | ||
- name: Install jq | ||
uses: dcarbone/[email protected] | ||
- name: Test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.