Skip to content

Commit

Permalink
Register replication API server (#162)
Browse files Browse the repository at this point in the history
Make the endpoint actually reachable from outside
  • Loading branch information
richardhuaaa authored Sep 13, 2024
1 parent a316923 commit f312344
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"context"
"database/sql"
"fmt"
"google.golang.org/grpc/reflection"
"net"
"strings"
"sync"
"time"

"google.golang.org/grpc/reflection"

"github.com/pires/go-proxyproto"
"github.com/xmtp/xmtpd/pkg/proto/xmtpv4/message_api"
"github.com/xmtp/xmtpd/pkg/registrant"
Expand Down Expand Up @@ -88,6 +89,7 @@ func NewAPIServer(
return nil, err
}
s.service = replicationService
message_api.RegisterReplicationApiServer(s.grpcServer, s.service)

tracing.GoPanicWrap(s.ctx, &s.wg, "grpc", func(ctx context.Context) {
s.log.Info("serving grpc", zap.String("address", s.grpcListener.Addr().String()))
Expand Down

0 comments on commit f312344

Please sign in to comment.