refactor(wsrelay): rename RoundTrip to NonStream

This commit is contained in:
hkfires
2025-10-26 20:01:46 +08:00
parent 7061cd6058
commit f3f31274e8
2 changed files with 4 additions and 4 deletions

View File

@@ -35,8 +35,8 @@ type StreamEvent struct {
Err error
}
// RoundTrip executes a non-streaming HTTP request using the websocket provider.
func (m *Manager) RoundTrip(ctx context.Context, provider string, req *HTTPRequest) (*HTTPResponse, error) {
// NonStream executes a non-streaming HTTP request using the websocket provider.
func (m *Manager) NonStream(ctx context.Context, provider string, req *HTTPRequest) (*HTTPResponse, error) {
if req == nil {
return nil, fmt.Errorf("wsrelay: request is nil")
}