Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-lombardi committed Jan 2, 2025
1 parent a98f1b1 commit e9dff62
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/abstractions/shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ func (ss *SSHShellService) handleTTLEvents() {

func (ss *SSHShellService) CreateShell(ctx context.Context, in *pb.CreateShellRequest) (*pb.CreateShellResponse, error) {
authInfo, _ := auth.AuthInfoFromContext(ctx)
keyEventChan := make(chan common.KeyEvent)

stub, err := ss.backendRepo.GetStubByExternalId(ctx, in.StubId)
if err != nil {
Expand All @@ -159,8 +158,6 @@ func (ss *SSHShellService) CreateShell(ctx context.Context, in *pb.CreateShellRe

containerId := ss.genContainerId(stub.ExternalId)

go ss.keyEventManager.ListenForPattern(ctx, common.RedisKeys.SchedulerContainerExitCode(containerId), keyEventChan)

// Don't allow negative and 0-valued compute requests
if stubConfig.Runtime.Cpu <= 0 {
stubConfig.Runtime.Cpu = defaultContainerCpu
Expand Down

0 comments on commit e9dff62

Please sign in to comment.