Skip to content

Commit 62dedb2

Browse files
authored
fix(pkg/aria2): use pointer receivers for Call methods (#1706)
1 parent 7189c5b commit 62dedb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/aria2/rpc/call.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (h *httpCaller) setNotifier(ctx context.Context, u url.URL, notifier Notifi
117117
return
118118
}
119119

120-
func (h httpCaller) Call(method string, params, reply interface{}) (err error) {
120+
func (h *httpCaller) Call(method string, params, reply interface{}) (err error) {
121121
payload, err := EncodeClientRequest(method, params)
122122
if err != nil {
123123
return
@@ -233,7 +233,7 @@ func (w *websocketCaller) Close() (err error) {
233233
return
234234
}
235235

236-
func (w websocketCaller) Call(method string, params, reply interface{}) (err error) {
236+
func (w *websocketCaller) Call(method string, params, reply interface{}) (err error) {
237237
ctx, cancel := context.WithTimeout(context.Background(), w.timeout)
238238
defer cancel()
239239
select {

0 commit comments

Comments
 (0)