-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a timeout of 1 second to the update check command (#397)
- Loading branch information
1 parent
760b1cc
commit 2b06405
Showing
5 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
package version | ||
|
||
import "github.com/usrbinapp/usrbin-go" | ||
import ( | ||
"time" | ||
|
||
"github.com/usrbinapp/usrbin-go" | ||
) | ||
|
||
func NewUsrbinSDK(currentVersion string) (*usrbin.SDK, error) { | ||
return usrbin.New( | ||
currentVersion, | ||
usrbin.UsingGitHubUpdateChecker("github.com/replicatedhq/replicated"), | ||
usrbin.UsingHomebrewFormula("replicatedhq/replicated/cli"), | ||
usrbin.UsingHttpTimeout(time.Second), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters