Skip to content

Commit

Permalink
refactor(executor): remove some unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Jan 29, 2021
1 parent 0e08de7 commit 70c7f37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ func topologyFromDeployment(testId lib.TestId, constructor func(string) lib.Reac
return topologyCooked, nil
}

func DeployRaw(srv *http.Server, testId lib.TestId, topology map[string]string, m lib.Marshaler, constructor func(string) lib.Reactor) {
topologyCooked, err := topologyFromDeployment(testId, constructor)
func DeployRaw(srv *http.Server, testId lib.TestId, m lib.Marshaler, constructor func(string) lib.Reactor) {
topology, err := topologyFromDeployment(testId, constructor)
if err != nil {
panic(err)
}
fmt.Printf("Deploying topology: %+v\n", topologyCooked)
Deploy(srv, topologyCooked, m)
fmt.Printf("Deploying topology: %+v\n", topology)
Deploy(srv, topology, m)
}

type LogWriter struct {
Expand Down
8 changes: 1 addition & 7 deletions src/sut/register/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,7 @@ func main() {
}()

marshaler := sut.NewMarshaler()
eventLog := lib.EventLogEmitter{
Component: "Register cmd",
TestId: &testId,
RunId: nil,
}
// TODO(stevan): nil below should be topology?
executor.DeployRaw(&srv, testId, eventLog, nil, marshaler, constructor)
executor.DeployRaw(&srv, testId, marshaler, constructor)

<-idleConnsClosed
}

0 comments on commit 70c7f37

Please sign in to comment.