diff --git a/go.mod b/go.mod index 936b676..f7dce01 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,8 @@ module github.com/loopholelabs/latensee go 1.21.1 require ( - github.com/pojntfx/hydrapp/hydrapp v0.0.0-20240807225249-46f23eed592e - github.com/pojntfx/panrpc/go v0.0.0-20240727035459-583758c47d9f + github.com/pojntfx/hydrapp/hydrapp v0.0.0-20240816012558-362be364b952 + github.com/pojntfx/panrpc/go v0.0.0-20240816011753-7169be8c89fb github.com/redis/go-redis/v9 v9.6.1 nhooyr.io/websocket v1.8.17 ) diff --git a/go.sum b/go.sum index 0250d0c..6f8ac29 100644 --- a/go.sum +++ b/go.sum @@ -42,10 +42,10 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/pojntfx/hydrapp/hydrapp v0.0.0-20240807225249-46f23eed592e h1:ciU0MrlBKRyQtZPGICkRVkT3p9RljI+ngfUFYW6gUlI= -github.com/pojntfx/hydrapp/hydrapp v0.0.0-20240807225249-46f23eed592e/go.mod h1:STH543zGexAUq9X/P0reiLTBak/A1cI23Ru+nHhYQDs= -github.com/pojntfx/panrpc/go v0.0.0-20240727035459-583758c47d9f h1:p7S+CWrOTh9M+QADrmedIuLevSmkbJTeNJvMOzTf8eY= -github.com/pojntfx/panrpc/go v0.0.0-20240727035459-583758c47d9f/go.mod h1:G9YawT9jiXDf6z7WEv7KMIca+A41mjm8KL8AfBxN37U= +github.com/pojntfx/hydrapp/hydrapp v0.0.0-20240816012558-362be364b952 h1:4MFySZ+5MxPoPEqAaWmezeqaO8IVBzpoMsuh/Y+fhm4= +github.com/pojntfx/hydrapp/hydrapp v0.0.0-20240816012558-362be364b952/go.mod h1:cMqpRL/EG4CvGaYlrEosyoHwkm54vDcL5r8d6/2G1SU= +github.com/pojntfx/panrpc/go v0.0.0-20240816011753-7169be8c89fb h1:2vU/ZbsJ1uZhR2BCjc3mIfzR9GVuAWHSIUrw8jnLK9g= +github.com/pojntfx/panrpc/go v0.0.0-20240816011753-7169be8c89fb/go.mod h1:G9YawT9jiXDf6z7WEv7KMIca+A41mjm8KL8AfBxN37U= github.com/randall77/makefat v0.0.0-20210315173500-7ddd0e42c844 h1:GranzK4hv1/pqTIhMTXt2X8MmMOuH3hMeUR0o9SP5yc= github.com/randall77/makefat v0.0.0-20210315173500-7ddd0e42c844/go.mod h1:T1TLSfyWVBRXVGzWd0o9BI4kfoO9InEgfQe4NV3mLz8= github.com/redis/go-redis/v9 v9.6.1 h1:HHDteefn6ZkTtY5fGUE8tj8uy85AHk6zP7CpzIAM0y4= diff --git a/pkg/backend/server.go b/pkg/backend/server.go index 8ee7a60..a27cc30 100644 --- a/pkg/backend/server.go +++ b/pkg/backend/server.go @@ -230,8 +230,6 @@ func StartServer(ctx context.Context, addr string, heartbeat time.Duration, loca registry := rpc.NewRegistry[remote, json.RawMessage]( service, - ctx, - &rpc.RegistryHooks{ OnClientConnect: func(remoteID string) { log.Printf("%v clients connected", clients.Add(1)) diff --git a/pkg/frontend/package-lock.json b/pkg/frontend/package-lock.json index 58df157..c6f3849 100644 --- a/pkg/frontend/package-lock.json +++ b/pkg/frontend/package-lock.json @@ -13,7 +13,7 @@ "@patternfly/react-charts": "^8.0.0-alpha.20", "@patternfly/react-core": "^6.0.0-alpha.57", "@patternfly/react-icons": "^6.0.0-alpha.20", - "@pojntfx/panrpc": "^0.9.0", + "@pojntfx/panrpc": "^0.9.2", "@streamparser/json-whatwg": "^0.0.21", "papaparse": "^5.4.1", "react": "^18.3.1", @@ -1915,9 +1915,9 @@ "integrity": "sha512-Ld9Eqi+vnj23PPf5jlRKziPvE8ciOeXrZY4Bpit49cWBOD3o1PAP2Xy1uxOyXg5Tgfx55g8MVW+QYRIiN5kiKQ==" }, "node_modules/@pojntfx/panrpc": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@pojntfx/panrpc/-/panrpc-0.9.0.tgz", - "integrity": "sha512-943LdxIR9KcxGvdkFW+qNx5S7L1APHIhcPIjxVpi8J590diwSB75Vs6tKfgWh/cPuERwzoHEIOK6djHoxWUfVw==", + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/@pojntfx/panrpc/-/panrpc-0.9.2.tgz", + "integrity": "sha512-kwCcGVOez2VzrWwWAGCbzo5JUYynDuhg1V5bNDoskLYBDbrPk0TfksW1ctlRsEFylo0yk3SsrsvO+Ut0GqGHOg==", "dependencies": { "reflect-metadata": "^0.2.2" } diff --git a/pkg/frontend/package.json b/pkg/frontend/package.json index 79e3365..e0f4417 100644 --- a/pkg/frontend/package.json +++ b/pkg/frontend/package.json @@ -24,7 +24,7 @@ "@patternfly/react-charts": "^8.0.0-alpha.20", "@patternfly/react-core": "^6.0.0-alpha.57", "@patternfly/react-icons": "^6.0.0-alpha.20", - "@pojntfx/panrpc": "^0.9.0", + "@pojntfx/panrpc": "^0.9.2", "@streamparser/json-whatwg": "^0.0.21", "papaparse": "^5.4.1", "react": "^18.3.1",