aggiunta la gestione errori

dopo 20sec si killa se bloccato dopo il timeout
This commit is contained in:
Michele 2016-11-04 11:50:27 +01:00
parent d7d68f4bf4
commit b095dea871
8 changed files with 99 additions and 38 deletions

View file

@ -21,6 +21,9 @@ func producer() {
for loop {
wg.Wait()
status = _Producer
start := time.Now()
// estrae un userid dalla lista degli utenti che hanno fatto login
user, err := redis.String(conn.Do("spop", "llindex"))