Skip to content

Commit

Permalink
ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcichra committed Oct 28, 2023
1 parent 380c467 commit c421a62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gps_collector/gps_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func dbrToMap(dbr *dbRecord) map[string]interface{} {
return m
}

func queueToPost(q *dque.DQue, h *http.Client, cfg Config) {
func queueToPost(q *dque.DQue, h *http.Client, cfg *Config) {
for {
// Only dequeue if we could successfully POST
var t interface{}
Expand Down Expand Up @@ -174,8 +174,8 @@ func main() {
if err != nil {
panic(err)
}
var cfg Config
if err := yaml.Unmarshal(configFile, &cfg); err != nil {
cfg := &Config{}
if err := yaml.Unmarshal(configFile, cfg); err != nil {
panic(err)
}

Expand Down

0 comments on commit c421a62

Please sign in to comment.