Skip to content

Commit 08e2080

Browse files
authored
node(cleanup): remove unused supervisor code (wormhole-foundation#4388)
- Removes test helpers for the super visor. The supervisor's tests are based on the upstream repo (documented in UPSTREAM.md). They were removed in 585a22c. As a result, these helpers functions are unused. - Remove `Command` function as it is not used in the codebase.
1 parent a15ba9f commit 08e2080

2 files changed

Lines changed: 0 additions & 45 deletions

File tree

node/pkg/supervisor/supervisor_support.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ package supervisor
55
import (
66
"context"
77
"net"
8-
"os/exec"
98

109
"google.golang.org/grpc"
1110
)
@@ -34,13 +33,3 @@ func GRPCServer(srv *grpc.Server, lis net.Listener, graceful bool) Runnable {
3433
}
3534
}
3635
}
37-
38-
// Command will create a Runnable that starts a long-running command, whose exit is determined to be a failure.
39-
func Command(name string, arg ...string) Runnable {
40-
return func(ctx context.Context) error {
41-
Signal(ctx, SignalHealthy)
42-
43-
cmd := exec.CommandContext(ctx, name, arg...)
44-
return cmd.Run()
45-
}
46-
}

node/pkg/supervisor/supervisor_testhelpers.go

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)