Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: Don't wait or try to send notfound data.
This modifies the recent concurrent getdata serving logic to immediately decrement the pending item count and move on to the next requested data item when an item is not found. Not only is it more efficient since it means there is no attempt to acquire the semaphore, it also prevents an issue the new code introduced where it could incorrectly queue up a nil message leading to a panic.
- Loading branch information