Skip to content

feat: parallel requests, fallback servers#6

Merged
yuuahp merged 4 commits intomainfrom
feat/parallel-fallback
Apr 3, 2025
Merged

feat: parallel requests, fallback servers#6
yuuahp merged 4 commits intomainfrom
feat/parallel-fallback

Conversation

@yuuahp
Copy link
Copy Markdown
Member

@yuuahp yuuahp commented Apr 3, 2025

This pull request introduces parallel requests and fallback server feature.

@yuuahp yuuahp requested a review from Copilot April 3, 2025 15:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces parallel requests and fallback server support for retrieving time from NTP servers.

  • Adds an asynchronous NTP call function in ntp.go.
  • Implements parallel and fallback server logic in main.go.
  • Provides a new helper for formatting time and updates the README with usage examples.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
ntp.go Adds asynchronous call function and core NTP communication logic.
main.go Implements parallel and fallback server logic in the CLI command.
format.go Introduces a helper function for time formatting based on layout.
README.md Updates examples and flag documentation to reflect new features.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@yuuahp yuuahp merged commit 081977e into main Apr 3, 2025
4 checks passed
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