File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
grpc-server/src/main/scala/com/avast/sst/grpc/server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ object GrpcServerModule {
13
13
*
14
14
* @param services service implementations to be added to the handler registry
15
15
* @param executionContext executor to be used for the server
16
- * @param globalInterceptors that are run for all the services
16
+ * @param interceptors that are run for all the services
17
17
*/
18
18
@ SuppressWarnings (Array (" org.wartremover.warts.NonUnitStatements" ))
19
19
def make [F [_]: Sync ](config : GrpcServerConfig ,
20
20
services : Seq [ServerServiceDefinition ],
21
21
executionContext : ExecutionContext ,
22
- globalInterceptors : Seq [ServerInterceptor ] = List .empty): Resource [F , Server ] =
22
+ interceptors : Seq [ServerInterceptor ] = List .empty): Resource [F , Server ] =
23
23
Resource .make {
24
24
Sync [F ].delay {
25
25
val builder = ServerBuilder
@@ -30,7 +30,7 @@ object GrpcServerModule {
30
30
.executor(executionContext.execute)
31
31
32
32
services.foreach(builder.addService)
33
- globalInterceptors .foreach(builder.intercept)
33
+ interceptors .foreach(builder.intercept)
34
34
35
35
builder.build.start()
36
36
}
You can’t perform that action at this time.
0 commit comments