Skip to content

Commit

Permalink
remove default fasthttp transport
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Jan 25, 2024
1 parent e518755 commit 4c76cc1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
func init() {
mock.RegisterTransport()
http.RegisterTransport()
fasthttp.RegisterTransport()
socket.RegisterTransport()
udp.RegisterTransport()
websocket.RegisterTransport()
Expand Down
5 changes: 0 additions & 5 deletions rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,11 +534,6 @@ func TestHTTP(t *testing.T) {
assert.Equal(t, http.StatusForbidden, resp.StatusCode)
resp.Body.Close()
assert.NoError(t, err)
fasthttpTransport := rpc.FastHTTPTransport(client)
fasthttpTransport.Header = http.Header{
"test": []string{"test"},
"Origin": []string{"hprose.com"},
}
{
result, err := client.Invoke("hello", []interface{}{"world"})
assert.Equal(t, "test:hello world", result[0])
Expand Down

0 comments on commit 4c76cc1

Please sign in to comment.