Skip to content

Commit

Permalink
test wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Jun 26, 2024
1 parent 6a5071e commit ffd0d74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/db/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ func (db *db) handleMessages(ctx context.Context, sub *event.Subscription) {
}
})
go onceReps.Do(func() {
log.Info("Loading replicators")
err := db.loadAndPublishReplicators(ctx)
if err != nil {
log.ErrorContextE(ctx, "Failed to load replicators", err)

Check warning on line 81 in internal/db/messages.go

View check run for this annotation

Codecov / codecov/patch

internal/db/messages.go#L81

Added line #L81 was not covered by tests
Expand Down
1 change: 1 addition & 0 deletions net/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ func (s *server) updateReplicators(evt event.Replicator) {

if evt.Docs != nil {
for update := range evt.Docs {
log.Info("Replicator update", corelog.Any("to peer", evt.Info.ID))
if err := s.pushLog(s.peer.ctx, update, evt.Info.ID); err != nil {
log.ErrorContextE(
s.peer.ctx,
Expand Down

0 comments on commit ffd0d74

Please sign in to comment.