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

Support Ipni-Cid-Schema-Type HTTP header #2664

Merged
merged 7 commits into from
Sep 12, 2024
Merged

Support Ipni-Cid-Schema-Type HTTP header #2664

merged 7 commits into from
Sep 12, 2024

Conversation

gammazero
Copy link
Collaborator

@gammazero gammazero commented Sep 6, 2024

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 loadtest synthetic command that was never used

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
  • Update boxo
  • Update README to remove references to comands that no longer exist

Closes #2662

- 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
@gammazero gammazero changed the title Update dependencies Support Ipni-Cid-Schema-Type HTTP header Sep 11, 2024
@@ -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):
Copy link
Member

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?

Copy link
Collaborator Author

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.

@gammazero gammazero merged commit 9b2309d into main Sep 12, 2024
9 checks passed
@gammazero gammazero deleted the update-deps branch September 12, 2024 21:16
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.

Add HTTP header for Ad sync
2 participants