Skip to content

Commit 3b86065

Browse files
committed
jsonrpc2: add compile time interface check
1 parent bc91fb6 commit 3b86065

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

jsonrpc2.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ type Interface interface {
2222
Wait(ctx context.Context) error
2323
}
2424

25+
var _ Interface = (*Conn)(nil)
26+
2527
// Conn is a JSON RPC 2 client server connection.
2628
// Conn is bidirectional; it does not have a designated server or client end.
2729
type Conn struct {

0 commit comments

Comments
 (0)