Skip to content

Commit

Permalink
update missing .env vars, misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pirtleshell committed Feb 6, 2024
1 parent 65fb4f0 commit c99c866
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ PROXY_CONTAINER_DEBUG_PORT=2345
PROXY_HOST_DEBUG_PORT=2345

##### E2E Testing Config
TEST_UNCONFIGURED_PROXY_PORT=7779
TEST_UNCONFIGURED_PROXY_URL=http://localhost:7779
TEST_PROXY_SERVICE_EVM_RPC_URL=http://localhost:7777
TEST_PROXY_SERVICE_EVM_RPC_HOSTNAME=localhost:7777
TEST_PROXY_SERVICE_EVM_RPC_PRUNING_URL=http://localhost:7778
Expand All @@ -56,7 +58,7 @@ TEST_REDIS_ENDPOINT_URL=localhost:6379
##### Kava Proxy Config
# What port the proxy service listens on
PROXY_SERVICE_PORT=7777
LOG_LEVEL=TRACE
LOG_LEVEL=DEBUG
HTTP_READ_TIMEOUT_SECONDS=30
HTTP_WRITE_TIMEOUT_SECONDS=60
# Address of the origin server to proxy all requests to
Expand Down
1 change: 0 additions & 1 deletion service/batchmdw/batch_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ func (bp *BatchProcessor) RequestAndServe(w http.ResponseWriter) error {
return err
}

// TODO: handle error response
w.WriteHeader(http.StatusOK)
w.Write(res)

Expand Down
2 changes: 1 addition & 1 deletion service/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func createDecodeRequestMiddleware(next http.HandlerFunc, batchProcessingMiddlew
}

// TODO: Trace
serviceLogger.Debug().Any("batch", batchRequests).Msg("successfully decoded batch of requests")
serviceLogger.Trace().Any("batch", batchRequests).Msg("successfully decoded batch of requests")
batchDecodedReqContext := context.WithValue(r.Context(), DecodedBatchRequestContextKey, batchRequests)
batchProcessingMiddleware.ServeHTTP(w, r.WithContext(batchDecodedReqContext))
}
Expand Down

0 comments on commit c99c866

Please sign in to comment.