summaryrefslogtreecommitdiff
path: root/internal/server/handlers/serverhandler.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-02-29 17:27:10 +0000
committerPaul Buetow <pbuetow@mimecast.com>2020-02-29 17:27:10 +0000
commit1d096119505b2eca99ff445644cce94ac0d8b3b8 (patch)
treed2c8b4e8f539b4af69bd71540facb11cb2a0924f /internal/server/handlers/serverhandler.go
parent7911b102171309dfc43bc2faccac6de9e490f175 (diff)
race condition
Diffstat (limited to 'internal/server/handlers/serverhandler.go')
-rw-r--r--internal/server/handlers/serverhandler.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/server/handlers/serverhandler.go b/internal/server/handlers/serverhandler.go
index 819cddd..b638e69 100644
--- a/internal/server/handlers/serverhandler.go
+++ b/internal/server/handlers/serverhandler.go
@@ -250,7 +250,6 @@ func (h *ServerHandler) handleUserCommand(ctx context.Context, argc int, args []
splitted := strings.Split(args[0], ":")
command := splitted[0]
- // TODO: Refactor: Create an "options" clase, combine makeOptions and readOptions there.
options, err := readOptions(splitted[1:])
if err != nil {
h.sendServerMessage(logger.Error(h.user, err))
@@ -332,7 +331,6 @@ func (h *ServerHandler) handleUserCommand(ctx context.Context, argc int, args []
if background {
commandCtx, cancel := context.WithCancel(h.serverCtx)
- // TODO: For background jobs dont attempt to send data to dtail client as there might be no SSH connection
if err := h.background.Add(h.user.Name, jobName, cancel, &wg); err != nil {
h.sendServerMessage(logger.Error(h.user, err, jobName, args))
finished()