Skip to content

Commit 848248d

Browse files
committed
fix: remove unused param
1 parent 76b7aab commit 848248d

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

telemetry_api/lib/scripts/fetch_operators_metadata.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ defmodule Scripts.FetchOperatorsMetadata do
77
# This Script is to fetch operators metadata from the blockchain activity
88
# and insert/update them into the Ecto database
99

10-
def run(fromBlock) do
10+
def run() do
1111
"Fetching old operators changes" |> Logger.debug()
12-
update_operators_metadata(fromBlock)
12+
update_operators_metadata()
1313

1414
"Done" |> Logger.debug()
1515
end
1616

17-
def update_operators_metadata(fromBlock) do
17+
def update_operators_metadata() do
1818
with {:ok, operators} <- OperatorStateRetriever.get_operators() do
1919
# Construct tuple {%Operator{}, op_data}
2020
operators = Enum.map(operators, fn op_data ->

telemetry_api/scripts/fetch_operators_metadata.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,9 @@ export ELIXIR_HOSTNAME=$ELIXIR_HOSTNAME
99
export ALIGNED_CONFIG_FILE=$ALIGNED_CONFIG_FILE
1010
export OPERATOR_FETCHER_WAIT_TIME_MS=$OPERATOR_FETCHER_WAIT_TIME_MS
1111

12-
if [ "$#" -eq 0 ]; then
13-
echo "Error, No arguments provided."
14-
echo "Try running the make target with FROM_BLOCK=<n>"
15-
exit 1
16-
elif [ "$#" -eq 1 ]; then
17-
# argument provided, use it
18-
FROM=$1
19-
else
20-
echo "Please provide 1 arguments."
21-
exit 1
22-
fi
23-
24-
echo "Running fetch_operators_metadata.sh from block: $FROM"
25-
2612
mix compile --force #force recompile to get the latest .env values
2713

2814
echo "You will now connect to the Telemetry Node, make sure you run the following command inside it:"
29-
echo "Scripts.FetchOperatorsMetadata.run($FROM)"
15+
echo "Scripts.FetchOperatorsMetadata.run()"
3016

3117
iex --sname fetch_operators_metadata --remsh telemetry@$ELIXIR_HOSTNAME

0 commit comments

Comments
 (0)