mirror of
https://github.com/callebtc/electronwall.git
synced 2025-12-18 07:34:19 +01:00
clean
This commit is contained in:
31
main.go
31
main.go
@@ -76,37 +76,6 @@ func main() {
|
||||
// htlc acceptor
|
||||
go dispatchHTLCAcceptor(ctx, conn, client)
|
||||
|
||||
// // htlc event subscriber, reports on incoming htlc events
|
||||
// router := routerrpc.NewRouterClient(conn)
|
||||
// stream, err := router.SubscribeHtlcEvents(ctx, &routerrpc.SubscribeHtlcEventsRequest{})
|
||||
// if err != nil {
|
||||
// return
|
||||
// }
|
||||
|
||||
// go func() {
|
||||
// err := processHtlcEvents(stream)
|
||||
// if err != nil {
|
||||
// log.Error("htlc events error",
|
||||
// "err", err)
|
||||
// }
|
||||
// }()
|
||||
|
||||
// // interceptor, decide whether to accept or reject
|
||||
// interceptor, err := router.HtlcInterceptor(ctx)
|
||||
// if err != nil {
|
||||
// return
|
||||
// }
|
||||
|
||||
// log.Info("HTLC Interceptor registered")
|
||||
|
||||
// go func() {
|
||||
// err := processInterceptor(interceptor)
|
||||
// if err != nil {
|
||||
// log.Error("interceptor error",
|
||||
// "err", err)
|
||||
// }
|
||||
// }()
|
||||
|
||||
wg.Wait()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user