Skip to content

Commit

Permalink
fix: fmt and lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ja7ad committed Jul 20, 2024
1 parent 887169f commit 37556a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions cmd/downlaod_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,14 @@ func (dl *DownloadManager) ExtractAndStoreFiles() error {

_ = rc.Close()
_ = outFile.Close()

}

_ = r.Close()
}

return nil
}

func (dl *DownloadManager) ParseTime(dateString string) time.Time {
func (*DownloadManager) ParseTime(dateString string) time.Time {
const layout = "2006-01-02T15:04:05.000000"

parsedTime, err := time.Parse(layout, dateString)
Expand Down
3 changes: 2 additions & 1 deletion cmd/gtk/startup_assistant.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ func startupAssistant(workingDir string, chain genesis.ChainType) bool {
context.Background(),
&md[snapshotIndex],
func(fileName string, totalSize, downloaded int64,
totalItem, downloadedItem int, percentage float64) {
totalItem, downloadedItem int, percentage float64,
) {
percent := int(percentage)
glib.IdleAdd(func() {
dlMessage := fmt.Sprintf("🌐 Downloading %s (%d/%d)... %d%% (%s / %s)",
Expand Down

0 comments on commit 37556a5

Please sign in to comment.