1. If the host doesn't support IPv6 (or supports only IPv6), allow the client to resolve IPs
2. Do not re-create a resolver in the hot path every time, but only if there's an error
3. Better concurrency handling with picking an address from the list via round-robin
4. Use one less background goroutine
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Updates wasm basic middleware and simplifies some code inside of it,
notably by using [waPC](https://github.com/wapc/wapc-go).
This changes the entrypoint function to be named "rewrite" and
uses a pool because known memory allocators are not goroutine
safe.
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
* Add base metadata for all components
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
* Fix lint issues on consul and mysql tests
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
* Pin candeia/dapr runtime version
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
* Add replace directive to use mcandeia/dapr on all go submodules
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
* Fixed runtime config instantiation
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
Signed-off-by: Marcos Candeia <marrcooos@gmail.com>
* Go 1.19 support and linter fixes
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Update workflows for Go1.19 and new linter version
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Remove unnecessary space in nolint directive
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* disable additional linters which aren't used because of Go generics
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* enable gosec linter again
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Update bindings/zeebe/command/publish_message_test.go
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Update bindings/output_binding.go
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Use prepared statement for mysql table creation
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Ping is not ping
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* c'mon linter
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Fix MySQL gosec issue
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* revert mysql to be fixed later
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* Updated to Go 1.18
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
* Added go.work file
With Go 1.18, this allows gopls (the Go language server used for example in VS Code) to work inside test apps too.
See: https://go.dev/doc/tutorial/workspaces
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* Removed go.work
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
* 💄
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
* add waiter pool for first browse
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* remove waiter
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* fix up refresh channel and test
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* add more tests
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* update comments
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* push to done chan on early error
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* add closer and stop goroutine leaks in tests
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* go mod tidy
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* increase make test timeout
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* provide fallback if subscriber never receives from chans
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* use counter for sub id and drain results on context done
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* reduce concurrent test iterations to 1000
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* add comment to explain expected behaviour
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* do not remove subscribers, clear them at the end
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* update outdated comment
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* reduce concurrent test iterations to 1000
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* run cleanup in background
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* reduce concurrent test iterations to 100
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
* update comment to explain cache recheck better
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
Co-authored-by: Looong Dai <long.dai@intel.com>
* remove benchmark
* explicitly use zero value
* initialize slice to 0 len
* fix loop closure
* use basic int for counter
* reduce diff
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
* no message
* Switching over usages of retry to the new package and making use of the DecodeConfig function
* Added decoding configuration using settings with a specific prefix
* Linter fixes
* Fixing linter error
* time.Sleep is the enemy
* Fix typo in comment
* Moving config to a pointer parameter so that the component can pass in the config with default values that make sense for that component.
* Renamed config struct
* Fix comment
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>