Skip to content

Conversation

@kvinwang
Copy link
Collaborator

This PR is the out-of-tree changes part of Phala-Network/phala-blockchain#1584.


let mut futures = FuturesUnordered::new();
for server in servers {
futures.push(httptime::get_time(server, Duration::from_secs(2)));
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fetch timestamp from the internet via the HTTP response header Date: xxxx-xx-xx....

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