aggiunta la gestione errori
dopo 20sec si killa se bloccato dopo il timeout
This commit is contained in:
parent
d7d68f4bf4
commit
b095dea871
8 changed files with 99 additions and 38 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue