Skip to content

Commit

Permalink
Add registry to startup command
Browse files Browse the repository at this point in the history
  • Loading branch information
neekolas committed Jul 24, 2024
1 parent 11c141d commit 02cde61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/replication/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/jessevdk/go-flags"
"github.com/xmtp/xmtp-node-go/pkg/replication"
"github.com/xmtp/xmtp-node-go/pkg/replication/registry"
"github.com/xmtp/xmtp-node-go/pkg/tracing"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
Expand Down Expand Up @@ -37,7 +38,7 @@ func main() {
var wg sync.WaitGroup
doneC := make(chan bool, 1)
tracing.GoPanicWrap(ctx, &wg, "main", func(ctx context.Context) {
s, err := replication.New(ctx, log, options)
s, err := replication.New(ctx, log, options, registry.NewFixedNodeRegistry([]registry.Node{}))
if err != nil {
log.Fatal("initializing server", zap.Error(err))
}
Expand Down

0 comments on commit 02cde61

Please sign in to comment.