Esempio n. 1
0
func sessionUpdater(instanceNum int, numIterations int, edDb *db.EdDb, c chan string) {

	for i := 0; i < numIterations; i++ {
		edDb.RecordSessionActivity(0)
	}
	c <- fmt.Sprintf("sessionUpdater %d finished", instanceNum)
}
Esempio n. 2
0
func personPutter(instanceNum int, numIterations int, edDb *db.EdDb, c chan string) {

	for i := 0; i < numIterations; i++ {
		which := rand.Intn(4)
		edDb.UpsertPerson(which, names[which])
	}
	c <- fmt.Sprintf("dbPutter %d finished", instanceNum)
}