-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support Ipni-Cid-Schema-Type HTTP header #2664
Conversation
- Update go-libipni - Remove loadtest synthetic command that was never used - Update README
The Ipni-Cid-Schema-Type HTTP header serves as an indication to advertisement publishers what type of data is being requested and is identified by the CID. This may help some publishers more quickly lookup the data. - Remove `synthetic` command The synthetic command is not used as there is not longer a way to import the generated data. This command was originally used to populate storetheindex with artificial data for testing. Test data is readily available from providers and CAR mirrors, and can be made available by a reference index provider, so there is not a need to generate data synthetically withing a storetheindex admin command. Other changes: - Update go-libp2p, boxo - Update README to remove references to comands that no longer exist
441430c
to
039e8cd
Compare
@@ -137,11 +136,10 @@ func TestAssignerAll(t *testing.T) { | |||
} | |||
t.Log("Publisher", peer2IDStr, "assigned to indexer", assignNum) | |||
assigns = append(assigns, assignNum) | |||
case <-timeout.C: | |||
case <-time.After(3 * time.Second): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the rationale for these changes? Would it be possible to use require.Eventually
at the time of assertion to avoid fixed value waits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rationale for this was because now (in go1.23) timers can be GC'd even if they are still running, so time.After
means less code and no need to stop and reset timers and worry about semantics before and after go1.23.
The Ipni-Cid-Schema-Type HTTP header serves as an indication to advertisement publishers what type of data is being requested and is identified by the CID. This may help some publishers more quickly lookup the data.
loadtest synthetic
command that was never usedThe
synthetic
command is not used as there is not longer a way to import the generated data. This command was originally used to populate storetheindex with artificial data for testing. Test data is readily available from providers and CAR mirrors, and can be made available by a reference index provider, so there is not a need to generate data synthetically withing a storetheindex admin command.Other changes:
Closes #2662