Skip to content

Commit

Permalink
update timing on market trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
antihax committed Dec 1, 2021
1 parent de7225e commit a272b76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/artifice/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func init() {
//registerTrigger("structures", structuresTrigger, time.NewTicker(time.Second*300))
//registerTrigger("marketHistory", historyTrigger, time.NewTicker(time.Second*1900))
registerTrigger("marketHistory", historyTrigger, time.NewTicker(time.Second*1900))
}

func historyTrigger(s *Artifice) error {
Expand Down
2 changes: 1 addition & 1 deletion services/hammer/hammer.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

// NUM_WORKERS number of concurrent workers
const NUM_WORKERS = 5
const NUM_WORKERS = 25

// Hammer completes work handling CCP ESI and other API.
type Hammer struct {
Expand Down
3 changes: 1 addition & 2 deletions services/squirrel/transport.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package squirrel

import (
"log"
"net/http"
)

Expand All @@ -23,7 +22,7 @@ func (t LimiterTransport) RoundTrip(req *http.Request) (*http.Response, error) {
// Run the request.
// Limit concurrency
semLimiterTransport <- true
log.Printf("%+v\n", req.URL)
//log.Printf("%+v\n", req.URL)

// Free the worker
defer func() { <-semLimiterTransport }()
Expand Down

0 comments on commit a272b76

Please sign in to comment.