~mariusor/fedbox-spammy

7fc610fd49a0df1ce1e530a95472f5746826a5ec — Marius Orcsik 3 months ago bb9e115
Added a way to pass the number of actors to create
1 files changed, 2 insertions(+), 1 deletions(-)

M cmd/main.go
M cmd/main.go => cmd/main.go +2 -1
@@ 61,6 61,7 @@ func main() {
		key        = fs.String("client", "", "The application Uuid")
		secret     = fs.String("secret", "", "The application secret")
		serv       = fs.String("url", spammy.ServiceAPI.String(), "The FedBOX url to connect to")
		actorCount = fs.Int("clients", DefaultActorCount, "How many actors to create")
	)
	logger.Formatter = &logrus.TextFormatter{
		DisableColors:          true,


@@ 106,7 107,7 @@ func main() {
	st := make(chan bool)

	go ticker(st)
	actors, errs := spammy.CreateRandomActors(DefaultActorCount, *concurrent)
	actors, errs := spammy.CreateRandomActors(*actorCount, *concurrent)
	fmt.Printf("\nCreated %d actors (%d errors)\n", len(actors), len(errs))
	for _, err := range errs {
		fmt.Fprintf(os.Stderr, "\t%s\n", err)