go.uuid broke API in the solution to go.uuid/#18. This updates to the new API.

Fixe afterwards
This commit is contained in:
Samuel Gyger 2019-07-01 01:52:29 +02:00
parent 0aa7395e21
commit e3a7716521

View file

@ -202,7 +202,7 @@ func main() {
func hookHandler(w http.ResponseWriter, r *http.Request) {
// generate a request id for logging
rid := uuid.NewV4().String()[:6]
rid := uuid.Must(uuid.NewV4()).String()[:6]
log.Printf("[%s] incoming HTTP request from %s\n", rid, r.RemoteAddr)