Skip to content

miss the last resolver server #44

@okxiaochen

Description

@okxiaochen

at file pkg/wildcards/resolver.go,

serverIndex := atomic.LoadInt32(&w.serversIndex)
if w.serversIndex >= int32(len(w.servers)-1) {
	atomic.StoreInt32(&w.serversIndex, 0)
	serverIndex = 0
}
resolver := w.servers[serverIndex]

the condition w.serversIndex >= int32(len(w.servers)-1) maybe wrong?
because it's never use the last index of the list
it should be w.serversIndex >= int32(len(w.servers))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: CompletedNothing further to be done with this issue. Awaiting to be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions