Skip to content

Commit 777ab34

Browse files
authored
Merge pull request gliderlabs#168 from caarlos0/ctx
feat: return ssh.Context
2 parents c9fc441 + dd71f10 commit 777ab34

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

session.go

+2-3
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)