From 300d12a8e6859e9390d66b30d8f77f0127fbc36e Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 25 Feb 2020 16:06:00 +0300 Subject: [PATCH 1/2] Fix pool size default value in config --- .circleci/config.yml | 4 ++-- apps/explorer/config/dev.exs | 2 +- apps/explorer/config/prod.exs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 59a27286c0..ce0b2af10f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -233,7 +233,7 @@ jobs: eslint: docker: # Ensure .tool-versions matches - - image: circleci/node:12.15.0-browsers-legacy + - image: circleci/node:12.16.1-browsers-legacy working_directory: ~/app @@ -275,7 +275,7 @@ jobs: jest: docker: # Ensure .tool-versions matches - - image: circleci/node:12.15.0-browsers-legacy + - image: circleci/node:12.16.1-browsers-legacy working_directory: ~/app diff --git a/apps/explorer/config/dev.exs b/apps/explorer/config/dev.exs index cbed0f47d7..62e5db3cb8 100644 --- a/apps/explorer/config/dev.exs +++ b/apps/explorer/config/dev.exs @@ -3,7 +3,7 @@ use Mix.Config # Configure your database config :explorer, Explorer.Repo, url: System.get_env("DATABASE_URL"), - pool_size: String.to_integer(System.get_env("POOL_SIZE") || "50"), + pool_size: String.to_integer(System.get_env("POOL_SIZE", "50")), timeout: :timer.seconds(80) config :explorer, Explorer.Tracer, env: "dev", disabled?: true diff --git a/apps/explorer/config/prod.exs b/apps/explorer/config/prod.exs index 0137d44ae5..f78fbb9473 100644 --- a/apps/explorer/config/prod.exs +++ b/apps/explorer/config/prod.exs @@ -3,7 +3,7 @@ use Mix.Config # Configures the database config :explorer, Explorer.Repo, url: System.get_env("DATABASE_URL"), - pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"), + pool_size: String.to_integer(System.get_env("POOL_SIZE", "50")), ssl: String.equivalent?(System.get_env("ECTO_USE_SSL") || "true", "true"), prepare: :unnamed, timeout: :timer.seconds(60) From 39aa0de5825663b34191b201a6644a6ac1f9696a Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Tue, 25 Feb 2020 16:16:20 +0300 Subject: [PATCH 2/2] Add CHANGELOG entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 411431fcc2..b614ee26bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - [#2834](https://github.com/poanetwork/blockscout/pull/2834) - always redirect to checksummed hash ### Fixes +- [#3024](https://github.com/poanetwork/blockscout/pull/3024) - Fix pool size default value in config - [#3021](https://github.com/poanetwork/blockscout/pull/3021), [#3022](https://github.com/poanetwork/blockscout/pull/3022) - Refine dev/test config - [#3016](https://github.com/poanetwork/blockscout/pull/3016), [#3017](https://github.com/poanetwork/blockscout/pull/3017) - Fix token instance QR code data - [#3014](https://github.com/poanetwork/blockscout/pull/3014) - Fix checksum address feature for tokens pages