Skip to content

Commit

Permalink
Fixed type not implementing interface after refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
noctarius committed Jul 6, 2023
1 parent d1c3926 commit 47a5403
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ func newLogicalReplicationResolver(config *spiconfig.Config, replicationContext
}, nil
}

func (l *logicalReplicationResolver) OnHypertableSnapshotStartedEvent(_ *spicatalog.Hypertable) error {
func (l *logicalReplicationResolver) OnHypertableSnapshotStartedEvent(_ string, _ *spicatalog.Hypertable) error {
return nil
}

func (l *logicalReplicationResolver) OnHypertableSnapshotFinishedEvent(_ *spicatalog.Hypertable) error {
func (l *logicalReplicationResolver) OnHypertableSnapshotFinishedEvent(_ string, _ *spicatalog.Hypertable) error {
return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ func newTransactionTracker(timeout time.Duration, maxSize uint, replicationConte
}, nil
}

func (tt *transactionTracker) OnHypertableSnapshotStartedEvent(hypertable *spicatalog.Hypertable) error {
return tt.resolver.OnHypertableSnapshotStartedEvent(hypertable)
func (tt *transactionTracker) OnHypertableSnapshotStartedEvent(
snapshotName string, hypertable *spicatalog.Hypertable) error {

return tt.resolver.OnHypertableSnapshotStartedEvent(snapshotName, hypertable)
}

func (tt *transactionTracker) OnHypertableSnapshotFinishedEvent(hypertable *spicatalog.Hypertable) error {
return tt.resolver.OnHypertableSnapshotFinishedEvent(hypertable)
func (tt *transactionTracker) OnHypertableSnapshotFinishedEvent(
snapshotName string, hypertable *spicatalog.Hypertable) error {

return tt.resolver.OnHypertableSnapshotFinishedEvent(snapshotName, hypertable)
}

func (tt *transactionTracker) OnSnapshottingStartedEvent(snapshotName string) error {
Expand Down

0 comments on commit 47a5403

Please sign in to comment.