Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Feb 4, 2025
1 parent 5fe4d5e commit 0b76e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions packages/rpc/src/RpcGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export type TypeId = typeof TypeId
* @since 1.0.0
* @category groups
*/
export interface RpcGroup<Rpcs extends Rpc.Any> extends Pipeable {
export interface RpcGroup<in out Rpcs extends Rpc.Any> extends Pipeable {
new(_: never): {}

readonly [TypeId]: TypeId
Expand Down Expand Up @@ -66,11 +66,7 @@ export interface RpcGroup<Rpcs extends Rpc.Any> extends Pipeable {
>(
build:
| Handlers
| Effect.Effect<
Handlers,
EX,
RX
>
| Effect.Effect<Handlers, EX, RX>
): Layer.Layer<
Rpc.ToHandler<Rpcs>,
EX,
Expand Down
4 changes: 2 additions & 2 deletions packages/rpc/src/RpcServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export const make: <Rpcs extends Rpc.Any>(
) => Effect.Effect<
never,
never,
Scope.Scope | Protocol | Rpc.ToHandler<Rpcs> | Rpc.Middleware<Rpcs>
Protocol | Rpc.ToHandler<Rpcs> | Rpc.Middleware<Rpcs>
> = Effect.fnUntraced(function*<Rpcs extends Rpc.Any>(
group: RpcGroup.RpcGroup<Rpcs>,
options?: {
Expand Down Expand Up @@ -584,7 +584,7 @@ export const make: <Rpcs extends Rpc.Any>(
module: "RpcServer"
})
)
})
}, Effect.scoped)

/**
* @since 1.0.0
Expand Down

0 comments on commit 0b76e34

Please sign in to comment.