Skip to content

Commit dd71f10

Browse files
committed
feat: return ssh.Context
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
1 parent c9fc441 commit dd71f10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

session.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package ssh
22

33
import (
44
"bytes"
5-
"context"
65
"errors"
76
"fmt"
87
"net"
@@ -60,7 +59,7 @@ type Session interface {
6059
//
6160
// The context is canceled when the client's connection closes or I/O
6261
// operation fails.
63-
Context() context.Context
62+
Context() Context
6463

6564
// Permissions returns a copy of the Permissions object that was available for
6665
// setup in the auth handlers via the Context.
@@ -159,7 +158,7 @@ func (sess *session) Permissions() Permissions {
159158
return *perms
160159
}
161160

162-
func (sess *session) Context() context.Context {
161+
func (sess *session) Context() Context {
163162
return sess.ctx
164163
}
165164

0 commit comments

Comments
 (0)