Skip to content

Commit

Permalink
godoc, remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
jpillora committed Oct 7, 2020
1 parent 55f5071 commit 5b7f069
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions handler/config.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package handler

//Config installer handler
type Config struct {
Port int `opts:"help=port, env"`
User string `opts:"help=default user when not provided in URL, env"`
Token string `opts:"help=github api token, env=GH_TOKEN"`
}

//DefaultConfig for an installer handler
var DefaultConfig = Config{
Port: 3000,
User: "jpillora",
Expand Down
1 change: 1 addition & 0 deletions handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func (q query) cacheKey() string {
return base64.StdEncoding.EncodeToString(h.Sum(nil))
}

//Handler serves install scripts using Github releases
type Handler struct {
Config
cacheMut sync.Mutex
Expand Down
1 change: 0 additions & 1 deletion handler/handler_github.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ func (h *Handler) getAssets(q *query) error {
h.cacheMut.Lock()
h.cache[key] = q
h.cacheMut.Unlock()
log.Printf("cached '%s' = %#v", key, q)
return nil
}

Expand Down

0 comments on commit 5b7f069

Please sign in to comment.