Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithunikzz committed Apr 15, 2024
1 parent 291b2df commit d7107f4
Show file tree
Hide file tree
Showing 5 changed files with 208 additions and 208 deletions.
2 changes: 1 addition & 1 deletion agent/container/pkg/application/githubmodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (c *GithubApiClient) FetchVersions(packageName string) ([]Version, error) {
var versions []Version
err = json.Unmarshal(body, &versions)
if err != nil {
return nil, fmt.Errorf("error occured while unmarshalling the version %w", err)
return nil, fmt.Errorf("error occurred while unmarshalling the version %w", err)
}

return versions, nil
Expand Down
8 changes: 4 additions & 4 deletions client/pkg/clickhouse/db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func (c *DBClient) InsertKubvizEvent(metrics model.Metrics) {
}

defer stmt.Close()
eventJson, _ := json.Marshal(metrics.Event)
eventJSON, _ := json.Marshal(metrics.Event)
formattedFirstTimestamp := metrics.Event.FirstTimestamp.Time.UTC().Format("2006-01-02 15:04:05")
formattedLastTimestamp := metrics.Event.LastTimestamp.Time.UTC().Format("2006-01-02 15:04:05")

Expand All @@ -598,7 +598,7 @@ func (c *DBClient) InsertKubvizEvent(metrics model.Metrics) {
metrics.Event.Message,
metrics.Event.Reason,
metrics.Event.Source.Host,
string(eventJson),
string(eventJSON),
metrics.ImageName,
formattedFirstTimestamp,
formattedLastTimestamp,
Expand Down Expand Up @@ -1018,8 +1018,8 @@ func (c *DBClient) RetrieveKubvizEvent() ([]model.DbEvent, error) {
log.Printf("Error: %s", err)
return nil, err
}
eventJson, _ := json.Marshal(dbEvent)
log.Printf("DB Event: %s", string(eventJson))
eventJSON, _ := json.Marshal(dbEvent)
log.Printf("DB Event: %s", string(eventJSON))
events = append(events, dbEvent)
}

Expand Down
Loading

0 comments on commit d7107f4

Please sign in to comment.