mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
les: skip meaningless tags
This commit is contained in:
parent
106af36aa9
commit
9404302778
1 changed files with 4 additions and 1 deletions
|
|
@ -286,7 +286,10 @@ type priorityClientInfo struct {
|
||||||
// matchTags checks whether the client matches the given tags
|
// matchTags checks whether the client matches the given tags
|
||||||
func (c *priorityClientInfo) matchTags(tags []string) bool {
|
func (c *priorityClientInfo) matchTags(tags []string) bool {
|
||||||
for _, tag := range tags {
|
for _, tag := range tags {
|
||||||
if len(tag) > 0 && tag[0] == '$' {
|
if len(tag) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if tag[0] == '$' {
|
||||||
switch tag {
|
switch tag {
|
||||||
case "$all":
|
case "$all":
|
||||||
case "$connected":
|
case "$connected":
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue