Fix typo - second edition (#1206)

This commit is contained in:
Egon Elbre 2019-02-01 16:09:34 +02:00 committed by GitHub
parent b91d77436f
commit 5a0306ce0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ func (cache *overlaycache) SelectNodes(ctx context.Context, count int, criteria
func (cache *overlaycache) SelectNewNodes(ctx context.Context, count int, criteria *overlay.NewNodeCriteria) ([]*pb.Node, error) {
return cache.queryFilteredNodes(ctx, criteria.Excluded, count, `
WHERE node_type == ? AND free_bandwidth >= ? AND free_disk >= ?
WHERE node_type = ? AND free_bandwidth >= ? AND free_disk >= ?
AND audit_count < ?
`, int(criteria.Type), criteria.FreeBandwidth, criteria.FreeDisk,
criteria.AuditThreshold,