Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(server): make queue drivers generic #3135

Merged
merged 7 commits into from
Sep 11, 2023
Merged

chore(server): make queue drivers generic #3135

merged 7 commits into from
Sep 11, 2023

Conversation

schoren
Copy link
Contributor

@schoren schoren commented Sep 8, 2023

This PR extracts the Queue module including its drivers into a reusable package through the use of generics. This sets the field to allow easy reuse in other modules

@@ -1,6 +1,6 @@
module github.com/kubeshop/tracetest/agent

go 1.20
go 1.21
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

}
}

type Pipeline[T any] struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I liked this approach of turning the Pipeline generic. This will help us to deal with other queues in the future.

@schoren schoren changed the title Subscriber drivers chore(server): make queue drivers generic Sep 11, 2023
@schoren schoren merged commit 7729669 into main Sep 11, 2023
38 checks passed
@schoren schoren deleted the subscriber-drivers branch September 11, 2023 19:12
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.

3 participants