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

[Heap] Make map index generic #863

Closed
wants to merge 4 commits into from
Closed

[Heap] Make map index generic #863

wants to merge 4 commits into from

Conversation

wlawt
Copy link
Contributor

@wlawt wlawt commented Apr 25, 2024

Instead of ids.ID we make this a generic. This will unblock #858 and let us use ActionID as a comparable type.

@wlawt wlawt self-assigned this Apr 25, 2024
@wlawt wlawt marked this pull request as ready for review April 26, 2024 00:07
o.orders[pair] = h
}
h.Push(&heap.Entry[*Order, float64]{
h.Push(&heap.Entry[ids.ID, *Order, float64]{
ID: order.ID,
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if there is a way around this, but this is not very golang-y imo (to have all three of these values populated by order derivatives)

@wlawt
Copy link
Contributor Author

wlawt commented May 9, 2024

Close because I cherry-picked the commits into #858

@wlawt wlawt closed this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants