Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
nats url consts now prefixed with nats
Browse files Browse the repository at this point in the history
  • Loading branch information
regner committed Aug 19, 2017
1 parent 5d73a8f commit dc9b4ab
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion client/operation_auction_get_offers.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ func (op operationAuctionGetOffersResponse) Process(state *albionState, uploader
return
}

uploader.sendToIngest(data, lib.MarketOrdersIngest)
uploader.sendToIngest(data, lib.NatsMarketOrdersIngest)
}
2 changes: 1 addition & 1 deletion client/operation_auction_get_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ func (op operationAuctionGetRequestsResponse) Process(state *albionState, upload
return
}

uploader.sendToIngest(data, lib.MarketOrdersIngest)
uploader.sendToIngest(data, lib.NatsMarketOrdersIngest)
}
2 changes: 1 addition & 1 deletion client/operation_gold_market_get_average_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ func (op operationGoldMarketGetAverageInfoResponse) Process(state *albionState,
return
}

uploader.sendToIngest(data, lib.GoldPricesIngest)
uploader.sendToIngest(data, lib.NatsGoldPricesIngest)
}
2 changes: 1 addition & 1 deletion cmd/natsdumper/natsdumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func main() {
defer nc.Close()

marketCh := make(chan *nats.Msg, 64)
marketSub, err := nc.ChanSubscribe(lib.GoldPricesDeduped, marketCh)
marketSub, err := nc.ChanSubscribe(lib.NatsGoldPricesDeduped, marketCh)
if err != nil {
fmt.Printf("%v\n", err)
return
Expand Down
8 changes: 4 additions & 4 deletions lib/nats.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package lib

const (
GoldPricesIngest = "goldprices.ingest"
GoldPricesDeduped = "goldprices.deduped"
MarketOrdersIngest = "marketorders.ingest"
MarketOrdersDeduped = "marketorders.deduped"
NatsGoldPricesIngest = "goldprices.ingest"
NatsGoldPricesDeduped = "goldprices.deduped"
NatsMarketOrdersIngest = "marketorders.ingest"
NatsMarketOrdersDeduped = "marketorders.deduped"
)

0 comments on commit dc9b4ab

Please sign in to comment.