Skip to content

Commit

Permalink
fix for working
Browse files Browse the repository at this point in the history
  • Loading branch information
boyter committed Aug 14, 2023
1 parent 25228ef commit f3974d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/badges/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
)

var uniqueCode = "unique_code"
var cache = NewSimpleCache(100)
var countingSemaphore = make(chan bool, 5)
var cache = NewSimpleCache(1000)
var countingSemaphore = make(chan bool, 1)

func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
Expand All @@ -33,7 +33,7 @@ func main() {

data, err := process(1, loc)
if err != nil {
log.Error().Str(uniqueCode, "03ec75c3").Err(err).Send()
log.Error().Str(uniqueCode, "03ec75c3").Err(err).Str("loc", loc.String()).Send()
w.WriteHeader(http.StatusBadRequest)
_, _ = w.Write([]byte("something bad happened sorry"))
return
Expand Down

0 comments on commit f3974d6

Please sign in to comment.