From fdfd5f3097e2a5f2c2e3a6b25cde4862e7c268d1 Mon Sep 17 00:00:00 2001 From: Andrew Davis <1709934+Savid@users.noreply.github.com> Date: Wed, 1 May 2024 11:48:01 +1000 Subject: [PATCH] tweak libp2p_peer_local key --- deploy/migrations/clickhouse/032_libp2p_trace.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/migrations/clickhouse/032_libp2p_trace.up.sql b/deploy/migrations/clickhouse/032_libp2p_trace.up.sql index ad2f6eee..cb471448 100644 --- a/deploy/migrations/clickhouse/032_libp2p_trace.up.sql +++ b/deploy/migrations/clickhouse/032_libp2p_trace.up.sql @@ -18,7 +18,7 @@ COMMENT COLUMN meta_network_id 'Ethereum network ID', COMMENT COLUMN meta_network_name 'Ethereum network name'; CREATE TABLE libp2p_peer ON CLUSTER '{cluster}' AS libp2p_peer_local -ENGINE = Distributed('{cluster}', default, libp2p_peer_local, rand()); +ENGINE = Distributed('{cluster}', default, libp2p_peer_local, unique_key); -- Creating local and distributed tables for libp2p_add_peer CREATE TABLE libp2p_add_peer_local ON CLUSTER '{cluster}'