Skip to content

Commit e3993ef

Browse files
committed
subservers: add new authmailbox sub server
1 parent 4a26cd2 commit e3993ef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

subservers/taproot-assets.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/lightninglabs/taproot-assets/tapcfg"
1414
"github.com/lightninglabs/taproot-assets/taprpc"
1515
"github.com/lightninglabs/taproot-assets/taprpc/assetwalletrpc"
16+
"github.com/lightninglabs/taproot-assets/taprpc/authmailboxrpc"
1617
"github.com/lightninglabs/taproot-assets/taprpc/mintrpc"
1718
"github.com/lightninglabs/taproot-assets/taprpc/rfqrpc"
1819
tchrpc "github.com/lightninglabs/taproot-assets/taprpc/tapchannelrpc"
@@ -132,6 +133,7 @@ func (t *taprootAssetsSubServer) RegisterGrpcService(
132133
rfqrpc.RegisterRfqServer(registrar, t)
133134
tchrpc.RegisterTaprootAssetChannelsServer(registrar, t)
134135
universerpc.RegisterUniverseServer(registrar, t)
136+
authmailboxrpc.RegisterMailboxServer(registrar, t)
135137
}
136138

137139
// RegisterRestService registers the sub-server's REST handlers with the given
@@ -198,6 +200,13 @@ func (t *taprootAssetsSubServer) RegisterRestService(ctx context.Context,
198200
return err
199201
}
200202

203+
err = authmailboxrpc.RegisterMailboxHandlerFromEndpoint(
204+
ctx, mux, endpoint, dialOpts,
205+
)
206+
if err != nil {
207+
return err
208+
}
209+
201210
return nil
202211
}
203212

0 commit comments

Comments
 (0)