Skip to content

Commit

Permalink
Fixed error gobbling when parsing pg and tsdb versions
Browse files Browse the repository at this point in the history
  • Loading branch information
noctarius committed Jul 9, 2023
1 parent b2a7eff commit 75d03ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/replication/context/sidechannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ func (sc *sideChannelImpl) getPostgresVersion() (pgVersion version.PostgresVersi
return err
}
pgVersion, err = version.ParsePostgresVersion(v)
if err != nil {
return err
}
return nil
}); err != nil {
return 0, errors.Wrap(err, 0)
Expand All @@ -323,6 +326,9 @@ func (sc *sideChannelImpl) getTimescaleDBVersion() (tsdbVersion version.Timescal
return err
}
tsdbVersion, err = version.ParseTimescaleVersion(v)
if err != nil {
return err
}
found = true
return nil
}); err != nil {
Expand Down

0 comments on commit 75d03ae

Please sign in to comment.