Skip to content

Commit

Permalink
Update scalafmt-core to 3.5.9 (#2366)
Browse files Browse the repository at this point in the history
* Update scalafmt-core to 3.5.9

* Reformat with scalafmt 3.5.9

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.5.9' to .git-blame-ignore-revs
  • Loading branch information
xerial-bot committed Aug 11, 2022
1 parent a605480 commit bf28f3b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
@@ -0,0 +1,2 @@
# Scala Steward: Reformat with scalafmt 3.5.9
fadb726e4d1855de746b61ed1bd3bb229f7e3f95
2 changes: 1 addition & 1 deletion .scalafmt.conf
@@ -1,4 +1,4 @@
version = 3.5.8
version = 3.5.9
project.layout = StandardConvention
runner.dialect = scala213source3
maxColumn = 120
Expand Down
Expand Up @@ -6,14 +6,14 @@ import wvlet.log.LogSupport
@RPC
trait MyRPCApi extends LogSupport {
import MyRPCApi._
def helloRPC(request:HelloRequest): HelloResponse = {
def helloRPC(request: HelloRequest): HelloResponse = {
val message = s"Hello ${request.name}!"
HelloResponse(message)
}

}

object MyRPCApi {
case class HelloRequest(name:String)
case class HelloResponse(message:String)
case class HelloRequest(name: String)
case class HelloResponse(message: String)
}
Expand Up @@ -2,10 +2,10 @@ package example

import wvlet.airspec.AirSpec
import wvlet.airframe._
import wvlet.airframe.http.{Http,Router}
import wvlet.airframe.http.finagle.{Finagle,FinagleServer}
import wvlet.airframe.http.{Http, Router}
import wvlet.airframe.http.finagle.{Finagle, FinagleServer}
import example.api.MyRPCApi
import example.api.MyRPCApi.{HelloRequest,HelloResponse}
import example.api.MyRPCApi.{HelloRequest, HelloResponse}
import example.api.MyRPCClient
import example.api.MyRPCClient.RPCSyncClient

Expand All @@ -14,10 +14,11 @@ class MyRPCTest extends AirSpec {
private val router = Router.of[MyRPCApi]

override protected def design: Design = {
Finagle.server.withRouter(router).design
Finagle.server
.withRouter(router).design
.bind[RPCSyncClient].toProvider { (server: FinagleServer) =>
MyRPCClient.newRPCSyncClient(Http.client.newSyncClient(server.localAddress))
}
MyRPCClient.newRPCSyncClient(Http.client.newSyncClient(server.localAddress))
}
}

test("Access RPC") { (client: RPCSyncClient) =>
Expand Down

0 comments on commit bf28f3b

Please sign in to comment.