From f25f2b23e54431c5c71d943d546aaa60f2e1cb78 Mon Sep 17 00:00:00 2001 From: Matt Peterson Date: Thu, 27 Jun 2024 12:39:28 -0600 Subject: [PATCH] fix: removed the manual scripts which write data.txt and the .gitignore line to prevent that from being added Signed-off-by: Matt Peterson --- .gitignore | 2 - .../src/test/resources/gen-producer-data.sh | 41 ------------------- server/src/test/resources/speed-producer.sh | 12 ------ 3 files changed, 55 deletions(-) delete mode 100755 server/src/test/resources/gen-producer-data.sh delete mode 100755 server/src/test/resources/speed-producer.sh 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" -