Move queue back into main, was breaking go get

This commit is contained in:
Andrey Petrov 2014-05-19 19:09:50 -07:00
parent 10a5421bc3
commit 454f1b1f2d
2 changed files with 3 additions and 5 deletions

View File

@ -4,15 +4,13 @@ import (
"sync"
"time"
"./queue"
"github.com/conformal/btcwire"
)
// TODO: Break Client/Peer/Crawler into separate modules.
type Crawler struct {
client *Client
queue *queue.Queue
queue *Queue
numSeen int
numUnique int
numConnected int
@ -41,7 +39,7 @@ func NewCrawler(client *Client, seeds []string) *Crawler {
}
done := make(chan struct{})
c.queue = queue.NewQueue(filter, done)
c.queue = NewQueue(filter, done)
// Prefill the queue
for _, address := range seeds {

View File

@ -1,4 +1,4 @@
package queue
package main
import "sync"