From 278bc4d724e02c8c81a7ee8b72f8e681b49da741 Mon Sep 17 00:00:00 2001 From: Ilia Borovitinov Date: Mon, 13 Jan 2025 19:14:58 +0300 Subject: [PATCH] chore: update Elixir to 1.18 (#2223) --- .tool-versions | 4 ++-- packages/sync-service/Dockerfile | 6 +++--- .../lib/electric/shape_cache/in_memory_storage.ex | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.tool-versions b/.tool-versions index 58d51dbf3b..0ae1b01c79 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,4 +1,4 @@ -elixir 1.17.2-otp-27 -erlang 27.0.1 +elixir 1.18.1-otp-27 +erlang 27.2 nodejs 20.18.1 pnpm 9.15.0 diff --git a/packages/sync-service/Dockerfile b/packages/sync-service/Dockerfile index b141bd69ab..212e59fd38 100644 --- a/packages/sync-service/Dockerfile +++ b/packages/sync-service/Dockerfile @@ -1,6 +1,6 @@ -ARG ELIXIR_VERSION=1.17.2 -ARG OTP_VERSION=27.0.1 -ARG DEBIAN_VERSION=bookworm-20240722-slim +ARG ELIXIR_VERSION=1.18.1 +ARG OTP_VERSION=27.2 +ARG DEBIAN_VERSION=bookworm-20241223-slim ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}" ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}" diff --git a/packages/sync-service/lib/electric/shape_cache/in_memory_storage.ex b/packages/sync-service/lib/electric/shape_cache/in_memory_storage.ex index 2ed8247b91..a9539e7ddd 100644 --- a/packages/sync-service/lib/electric/shape_cache/in_memory_storage.ex +++ b/packages/sync-service/lib/electric/shape_cache/in_memory_storage.ex @@ -265,7 +265,9 @@ defmodule Electric.ShapeCache.InMemoryStorage do Enum.map(checkpoints, &elem(&1, 0)) end) |> Enum.max() - |> then(fn max_chunk -> :ets.insert(table, {snapshot_end(), LogOffset.new(max_chunk)}) end) + |> then(fn max_chunk -> + :ets.insert(table, {snapshot_end(), LogOffset.new(max_chunk)}) + end) :ok end