rpc: remove 'exported or builtin' restriction for parameters (#20332)
* rpc: remove 'exported or builtin' restriction for parameters There is no technial reason for this restriction because package reflect can create values of any type. Requiring parameters and return values to be exported causes a lot of noise in package exports. * rpc: fix staticcheck warnings
This commit is contained in:
committed by
Péter Szilágyi
parent
9c6cf960b4
commit
8008c5b1fa
@ -96,7 +96,7 @@ func TestWebsocketLargeCall(t *testing.T) {
|
||||
defer client.Close()
|
||||
|
||||
// This call sends slightly less than the limit and should work.
|
||||
var result Result
|
||||
var result echoResult
|
||||
arg := strings.Repeat("x", maxRequestContentLength-200)
|
||||
if err := client.Call(&result, "test_echo", arg, 1); err != nil {
|
||||
t.Fatalf("valid call didn't work: %v", err)
|
||||
|
Reference in New Issue
Block a user