@@ -61,7 +61,7 @@ object BloopRpcServices {
6161 import endpoint .{codecA , codecB }
6262 val method = endpoint.method
6363 message match {
64- case Request (`method`, params, id, jsonrpc, headers ) =>
64+ case Request (`method`, params, id, _, _ ) =>
6565 val paramsJson = extractJsonParams(params)
6666 Try (readFromArray[A ](paramsJson.value)) match {
6767 case Success (value) =>
@@ -97,14 +97,14 @@ object BloopRpcServices {
9797 import endpoint .codecA
9898 val method = endpoint.method
9999 message match {
100- case Notification (`method`, params, _, headers ) =>
100+ case Notification (`method`, params, _, _ ) =>
101101 val paramsJson = extractJsonParams(params)
102102 Try (readFromArray[A ](paramsJson.value)) match {
103- case Success (value) => f(value).map(a => Response .None )
103+ case Success (value) => f(value).map(_ => Response .None )
104104 case Failure (err) =>
105105 fail(s " Failed to parse notification $message. Params: $paramsJson. Errors: $err" )
106106 }
107- case Notification (invalidMethod, _, _, headers ) =>
107+ case Notification (invalidMethod, _, _, _ ) =>
108108 fail(s " Expected method ' $method', obtained ' $invalidMethod' " )
109109 case _ => fail(s " Expected notification, obtained $message" )
110110 }
0 commit comments