Skip to content

Commit

Permalink
feat: return ssh.Context
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jan 6, 2022
1 parent c9fc441 commit dd71f10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package ssh

import (
"bytes"
"context"
"errors"
"fmt"
"net"
Expand Down Expand Up @@ -60,7 +59,7 @@ type Session interface {
//
// The context is canceled when the client's connection closes or I/O
// operation fails.
Context() context.Context
Context() Context

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

func (sess *session) Context() context.Context {
func (sess *session) Context() Context {
return sess.ctx
}

Expand Down

0 comments on commit dd71f10

Please sign in to comment.