Skip to content

Commit

Permalink
rm the useless stop func
Browse files Browse the repository at this point in the history
Signed-off-by: sh2 <[email protected]>
  • Loading branch information
shawnh2 committed Sep 18, 2023
1 parent b789e69 commit 99095fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/deployer/baremetal/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type Deployer struct {
wg sync.WaitGroup
bm *component.BareMetalCluster
ctx context.Context
stop context.CancelFunc

createNoDirs bool
workingDirs component.WorkingDirs
Expand All @@ -58,13 +57,12 @@ var _ Interface = &Deployer{}
type Option func(*Deployer)

func NewDeployer(l logger.Logger, clusterName string, opts ...Option) (Interface, error) {
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
ctx, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)

d := &Deployer{
logger: l,
config: config.DefaultConfig(),
ctx: ctx,
stop: stop,
}

for _, opt := range opts {
Expand Down

0 comments on commit 99095fd

Please sign in to comment.