starpc 0.39.0 → 0.39.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/go.mod +3 -3
- package/go.sum +2 -2
- package/package.json +4 -4
- package/srpc/common-rpc.go +6 -0
package/go.mod
CHANGED
|
@@ -2,7 +2,7 @@ module github.com/aperturerobotics/starpc
|
|
|
2
2
|
|
|
3
3
|
go 1.24
|
|
4
4
|
|
|
5
|
-
toolchain go1.24.
|
|
5
|
+
toolchain go1.24.4
|
|
6
6
|
|
|
7
7
|
replace (
|
|
8
8
|
// This fork uses go-protobuf-lite and adds post-quantum crypto support.
|
|
@@ -14,12 +14,12 @@ replace (
|
|
|
14
14
|
|
|
15
15
|
require (
|
|
16
16
|
github.com/aperturerobotics/protobuf-go-lite v0.9.1 // latest
|
|
17
|
-
github.com/aperturerobotics/util v1.30.
|
|
17
|
+
github.com/aperturerobotics/util v1.30.1 // latest
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
require (
|
|
21
21
|
github.com/coder/websocket v1.8.13 // latest
|
|
22
|
-
github.com/libp2p/go-libp2p v0.
|
|
22
|
+
github.com/libp2p/go-libp2p v0.42.0 // latest
|
|
23
23
|
github.com/pkg/errors v0.9.1 // latest
|
|
24
24
|
github.com/sirupsen/logrus v1.9.3 // latest
|
|
25
25
|
google.golang.org/protobuf v1.36.6 // latest
|
package/go.sum
CHANGED
|
@@ -4,8 +4,8 @@ github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3
|
|
|
4
4
|
github.com/aperturerobotics/json-iterator-lite v1.0.1-0.20240713111131-be6bf89c3008/go.mod h1:snaApCEDtrHHP6UWSLKiYNOZU9A5NyzccKenx9oZEzg=
|
|
5
5
|
github.com/aperturerobotics/protobuf-go-lite v0.9.1 h1:P1knXKnwLJpVE8fmeXYGckKu79IhqUvKRdCfJNR0MwQ=
|
|
6
6
|
github.com/aperturerobotics/protobuf-go-lite v0.9.1/go.mod h1:fULrxQxEBWKQm7vvju9AfjTp9yfHoLgwMQWTiZQ2tg0=
|
|
7
|
-
github.com/aperturerobotics/util v1.30.
|
|
8
|
-
github.com/aperturerobotics/util v1.30.
|
|
7
|
+
github.com/aperturerobotics/util v1.30.1 h1:4ssKO1TlfoBBcLXZwISAw8Yf8H9Mg9D0jnn+klMXAKY=
|
|
8
|
+
github.com/aperturerobotics/util v1.30.1/go.mod h1:OLTwZiBfCVh9kirNhA1quJfnLuy4OW7CyIkvoFX62+A=
|
|
9
9
|
github.com/coder/websocket v1.8.13 h1:f3QZdXy7uGVz+4uCJy2nTZyM0yTBj8yANEHhqlXZ9FE=
|
|
10
10
|
github.com/coder/websocket v1.8.13/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
|
|
11
11
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starpc",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.2",
|
|
4
4
|
"description": "Streaming protobuf RPC service protocol over any two-way channel.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"eslint": "^9.21.0",
|
|
88
88
|
"eslint-config-prettier": "^10.0.2",
|
|
89
89
|
"husky": "^9.1.7",
|
|
90
|
-
"lint-staged": "^
|
|
90
|
+
"lint-staged": "^16.0.0",
|
|
91
91
|
"prettier": "^3.5.3",
|
|
92
92
|
"rimraf": "^6.0.1",
|
|
93
93
|
"tsx": "^4.19.3",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
98
|
"@aptre/it-ws": "^1.0.1",
|
|
99
|
-
"@aptre/protobuf-es-lite": "^0.
|
|
99
|
+
"@aptre/protobuf-es-lite": "^0.5.0",
|
|
100
100
|
"@chainsafe/libp2p-yamux": "^7.0.1",
|
|
101
101
|
"@libp2p/interface": "^2.6.1",
|
|
102
102
|
"@libp2p/logger": "^5.1.11",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"ws": "^8.18.1"
|
|
111
111
|
},
|
|
112
112
|
"resolutions": {
|
|
113
|
-
"@aptre/protobuf-es-lite": "0.
|
|
113
|
+
"@aptre/protobuf-es-lite": "0.5.0"
|
|
114
114
|
}
|
|
115
115
|
}
|
package/srpc/common-rpc.go
CHANGED
|
@@ -149,6 +149,12 @@ func (c *commonRPC) HandleCallData(pkt *CallData) error {
|
|
|
149
149
|
var err error
|
|
150
150
|
c.bcast.HoldLock(func(broadcast func(), getWaitCh func() <-chan struct{}) {
|
|
151
151
|
if c.dataClosed {
|
|
152
|
+
// If the packet is just indicating the call is complete, ignore it.
|
|
153
|
+
if pkt.GetComplete() {
|
|
154
|
+
return
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Otherwise, return ErrCompleted (unexpected packet).
|
|
152
158
|
err = ErrCompleted
|
|
153
159
|
return
|
|
154
160
|
}
|