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) }
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) }