Skip to content

Remove TimeStub from rivertest#912

Merged
brandur merged 1 commit into
masterfrom
brandur-remove-time-stub
May 24, 2025
Merged

Remove TimeStub from rivertest#912
brandur merged 1 commit into
masterfrom
brandur-remove-time-stub

Conversation

@brandur

@brandur brandur commented May 21, 2025

Copy link
Copy Markdown
Contributor

I was looking through the public API surface area of rivertest [1] and
noticed that we actually have a TimeStub in there. I think this was
accidental export from a time before we had a TimeStub available in
rivershared.

I think we should take this out. Technically it's a breaking change
given it was part of the public API, but there wasn't a whole bunch that
anyone would need this for, so I doubt usage is significant, and
hopefully no one's using it at all.

[1] https://pkg.go.dev/github.com/riverqueue/river/rivertest

I was looking through the public API surface area of `rivertest` [1] and
noticed that we actually have a `TimeStub` in there. I think this was
accidental export from a time before we had a `TimeStub` available in
`rivershared`.

I think we should take this out. Technically it's a breaking change
given it was part of the public API, but there wasn't a whole bunch that
anyone would need this for, so I doubt usage is significant, and
hopefully no one's using it at all.

[1] https://pkg.go.dev/github.com/riverqueue/river/rivertest
@brandur brandur force-pushed the brandur-remove-time-stub branch from 8550cab to 3b6f383 Compare May 21, 2025 02:48
@brandur brandur requested a review from bgentry May 21, 2025 02:51

@bgentry bgentry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find and agree, nobody should be using this anyway so hopefully it won't impact anybody.

@brandur brandur merged commit c0b7781 into master May 24, 2025
10 checks passed
@brandur brandur deleted the brandur-remove-time-stub branch May 24, 2025 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants