diff --git a/.gitignore b/.gitignore index f2824c4fc..cfc4ee374 100644 --- a/.gitignore +++ b/.gitignore @@ -47,5 +47,3 @@ gradle-app.setting # JDT-specific (Eclipse Java Development Tools) .classpath -data.txt - diff --git a/server/src/test/resources/gen-producer-data.sh b/server/src/test/resources/gen-producer-data.sh deleted file mode 100755 index ca4677de2..000000000 --- a/server/src/test/resources/gen-producer-data.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - - -# Function to display usage error -usage_error() { - echo "Usage: $0 " - exit 1 -} - -# Check if exactly one argument is provided -if [ "$#" -ne 1 ]; then - usage_error -fi - -# Check if the provided argument is an integer -if ! [[ "$1" =~ ^-?[0-9]+$ ]]; then - usage_error -fi - -echo "Generating data..." -limit=${1} - -# Initialize iteration number -iteration=0 - -# Infinite loop -while true; do - # Increment iteration number - ((iteration++)) - - echo "{\"id\": $iteration, \"value\": \"block-stream-$iteration\"}" >> data.txt - - if [ $iteration -eq $limit ]; then - # Break out of the loop - break - fi - -done - - -echo "Finished" diff --git a/server/src/test/resources/speed-producer.sh b/server/src/test/resources/speed-producer.sh deleted file mode 100755 index 19fd9d91e..000000000 --- a/server/src/test/resources/speed-producer.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -echo "Starting producer..." - -GRPC_SERVER="localhost:8080" -GRPC_METHOD="BlockStreamGrpc/StreamSink" -PATH_TO_PROTO="../../../../protos/src/main/protobuf/blockstream.proto" - -grpcurl -plaintext -proto $PATH_TO_PROTO -d @ $GRPC_SERVER $GRPC_METHOD < data.txt - -echo "Finished" -