Commit 4290fa76 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Improve JS runtime authoritative match filtered broadcasts to large sets of users.

parent 4abf684c
Loading
Loading
Loading
Loading
+1 −0
Changes for CHANGELOG.md: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Allow passing lists of presences as match init parameters to Go runtime matches.
- Fix devconsole counts when database statistics are not available.
- Generate missing username in runtime token generator.
- Improve JS runtime authoritative match filtered broadcasts to large sets of users.

## [3.11.0] - 2022-03-21
### Added
+0 −2
Changes for go.sum: 0 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -255,8 +255,6 @@ github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHh
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/heroiclabs/nakama-common v1.22.0 h1:8poRz024S6gedi4mlOHEHPayTKtjh1DKsSZVF0uJpyU=
github.com/heroiclabs/nakama-common v1.22.0/go.mod h1:WF4YG46afwY3ibzsXnkt3zvhQ3tBY03IYeU7xSLr8HE=
github.com/heroiclabs/nakama-common v1.22.1-0.20220328201422-bed57ba110d8 h1:2gUIdPre/Q57HUwd+GtbSc3CucU/wqgEVpmIF5tiSto=
github.com/heroiclabs/nakama-common v1.22.1-0.20220328201422-bed57ba110d8/go.mod h1:WF4YG46afwY3ibzsXnkt3zvhQ3tBY03IYeU7xSLr8HE=
github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
+1 −1
Changes for server/runtime_javascript_match_core.go: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -678,7 +678,7 @@ func (rm *RuntimeJavaScriptMatchCore) validateBroadcast(r *goja.Runtime, f goja.
				return nil, nil, false
			}
		} else {
			presenceIDs := rm.presenceList.FilterPresenceIDs(presenceIDs)
			presenceIDs = rm.presenceList.FilterPresenceIDs(presenceIDs)
			if len(presenceIDs) == 0 {
				// None of the target presenceIDs existed in the list of match members.
				return nil, nil, false
+1 −1
Changes for vendor/modules.txt: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/internal/genopena
github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options
github.com/grpc-ecosystem/grpc-gateway/v2/runtime
github.com/grpc-ecosystem/grpc-gateway/v2/utilities
# github.com/heroiclabs/nakama-common v1.22.0
# github.com/heroiclabs/nakama-common v1.22.1-0.20220328201422-bed57ba110d8
## explicit; go 1.14
github.com/heroiclabs/nakama-common/api
github.com/heroiclabs/nakama-common/rtapi