Skip to content

Commit 74836fc

Browse files
committed
Small fixes
1 parent 1604a8e commit 74836fc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

driver/executor/executor.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@ func scheduleApplicationEvents(source *parser.Application, queue *eventQueue, ne
252252
name := fmt.Sprintf("%s-%d", source.Name, i)
253253
// TODO add deployment time of contract to config
254254
queue.add(toSingleEvent(Seconds(5), fmt.Sprintf("deploying contract app %s", name), func() error {
255-
return startApp(net, source, name, users, startTime, endTime, queue)
255+
return startApplication(net, source, name, users, startTime, endTime, queue)
256256
}))
257257
}
258258
return nil
259259
}
260260

261-
// startApp creates and starts a new application on the network.
262-
func startApp(net driver.Network, source *parser.Application, name string, users int, startTime, endTime Time, queue *eventQueue) error {
261+
// startApplication creates and starts a new application on the network.
262+
func startApplication(net driver.Network, source *parser.Application, name string, users int, startTime, endTime Time, queue *eventQueue) error {
263263
if newApp, err := net.CreateApplication(&driver.ApplicationConfig{
264264
Name: name,
265265
Type: source.Type,

load/controller/controller.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func NewAppController(application app.Application, shaper shaper.Shaper, numUser
4949
var err error
5050
rpcClient, err = network.DialRandomRpc()
5151
if err != nil {
52-
return nil, fmt.Errorf("failed to dial ranom RPC; %v", err)
52+
return nil, fmt.Errorf("failed to dial random RPC; %v", err)
5353
}
5454
}
5555

@@ -61,9 +61,9 @@ func NewAppController(application app.Application, shaper shaper.Shaper, numUser
6161
return nil, fmt.Errorf("failed to create load app; %s", err)
6262
}
6363
users = append(users, gen)
64-
//if i%100 == 0 {
65-
log.Printf("initialized %d of %d users ...\n", i+1, numUsers)
66-
//}
64+
if i%100 == 0 {
65+
log.Printf("initialized %d of %d users ...\n", i+1, numUsers)
66+
}
6767
}
6868

6969
// wait until all changes are on the chain

0 commit comments

Comments
 (0)