Skip to content

Commit

Permalink
Fix: remove mq from API config
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Mar 15, 2021
1 parent 65c657a commit d30595f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 44 deletions.
1 change: 0 additions & 1 deletion cmd/api/handlers/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ func NewContext(cfg config.Config) (*Context, error) {
config.WithTzKTServices(cfg.TzKT),
config.WithLoadErrorDescriptions(),
config.WithConfigCopy(cfg),
config.WithRabbit(cfg.RabbitMQ, cfg.API.ProjectName, cfg.API.MQ),
config.WithPinata(cfg.API.Pinata),
config.WithTzipSchema("data/tzip-16-schema.json"),
)
Expand Down
11 changes: 0 additions & 11 deletions configs/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,6 @@ api:
- mainnet
- edo2net
- florencenet
mq:
publisher: true
queues:
operations:
non_durable: true
auto_deleted: true
ttl_seconds: 10
blocks:
non_durable: true
auto_deleted: true
ttl_seconds: 10
pinata:
key: ${PINATA_KEY}
secret_key: ${PINATA_SECRET_KEY}
Expand Down
11 changes: 0 additions & 11 deletions configs/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,6 @@ api:
- mainnet
- edo2net
- florencenet
mq:
publisher: true
queues:
operations:
non_durable: true
auto_deleted: true
ttl_seconds: 15
blocks:
non_durable: true
auto_deleted: true
ttl_seconds: 15
pinata:
key: ${PINATA_KEY}
secret_key: ${PINATA_SECRET_KEY}
Expand Down
9 changes: 0 additions & 9 deletions configs/sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ api:
network: "sandboxnet"
networks:
- sandboxnet
mq:
publisher: true
queues:
operations:
non_durable: true
auto_deleted: true
blocks:
non_durable: true
auto_deleted: true
pinata:
key: ${PINATA_KEY}
secret_key: ${PINATA_SECRET_KEY}
Expand Down
11 changes: 0 additions & 11 deletions configs/you.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,6 @@ api:
- mainnet
- edo2net
- florencenet
mq:
publisher: true
queues:
operations:
non_durable: true
auto_deleted: true
ttl_seconds: 10
blocks:
non_durable: true
auto_deleted: true
ttl_seconds: 10
pinata:
key: ${PINATA_KEY}
secret_key: ${PINATA_SECRET_KEY}
Expand Down
2 changes: 1 addition & 1 deletion internal/elastic/core/scroll.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (ctx *ScrollContext) createScroll(index string, query map[string]interface{
return
}

if ctx.Size < ctx.ChunkSize {
if ctx.Size < ctx.ChunkSize && ctx.Size > 0 {
ctx.ChunkSize = ctx.Size
}

Expand Down

0 comments on commit d30595f

Please sign in to comment.