Skip to content

Commit 6f6e82e

Browse files
committed
jsonrpc2: remove Wait method interface
1 parent 020667c commit 6f6e82e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

jsonrpc2.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ type Interface interface {
2525
Cancel(id ID)
2626

2727
Run(ctx context.Context) error
28-
29-
Wait(ctx context.Context) error
3028
}
3129

3230
// Handler is an option you can pass to NewConn to handle incoming requests.
@@ -413,9 +411,6 @@ func (c *Conn) Run(ctx context.Context) error {
413411
}
414412
}
415413

416-
// Wait blocks until the connection is terminated, and returns any error that cause the termination.
417-
func (c *Conn) Wait(ctx context.Context) error { return nil }
418-
419414
// Direction is used to indicate to a logger whether the logged message was being
420415
// sent or received.
421416
type Direction bool

0 commit comments

Comments
 (0)