Skip to content

Commit a9caf47

Browse files
author
Dmitry Voronov
committed
Formatting applied
1 parent dade78e commit a9caf47

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/scala/io/iohk/ethereum/jsonrpc/server/http/JsonRpcHttpServer.scala

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ trait JsonRpcHttpServer extends Json4sSupport with Logger {
6666
entity(as[JsonRpcRequest]) {
6767
case statusReq if statusReq.method == FaucetJsonRpcController.Status =>
6868
handleRequest(statusReq)
69-
case jsonReq => rateLimit {
70-
handleRequest(jsonReq)
71-
}
72-
// TODO: separate paths for single and multiple requests
73-
// TODO: to prevent repeated body and json parsing
69+
case jsonReq =>
70+
rateLimit {
71+
handleRequest(jsonReq)
72+
}
73+
// TODO: separate paths for single and multiple requests
74+
// TODO: to prevent repeated body and json parsing
7475
} ~ entity(as[Seq[JsonRpcRequest]]) {
7576
case _ if config.rateLimit.enabled =>
7677
complete(StatusCodes.MethodNotAllowed, JsonRpcError.MethodNotFound)

0 commit comments

Comments
 (0)