func doRpop (id string, signal chan int, client redis.Client, cnt int) { key := "list-R" + id; for i:=0;i<cnt;i++ { client.Rpop(key); } signal <- 1; }