netsec-ethz / rains

RAINS (Another Internet Naming Service)
Apache License 2.0
9 stars 11 forks source link

Block on work queue #193

Open FR4NK-W opened 5 years ago

FR4NK-W commented 5 years ago

https://github.com/netsec-ethz/rains/blob/1bb893d0a10673ea5913590f7bfe4af9e013c891/internal/pkg/rainsd/inbox.go#L145

The workers should block on the request queue and not rely on the sleep to idle.