Skip to content
Snippets Groups Projects
Commit 7a454078 authored by Tucker Siegel's avatar Tucker Siegel
Browse files

cleanup

parent 24f9fcfd
No related branches found
No related tags found
1 merge request!17Adds rabbitmq messaging
package services
import (
"fmt"
"time"
"gitlab.cs.umd.edu/dawn/dawn-go-common/common"
......@@ -39,10 +38,7 @@ func GetGddValues(ctx common.DawnCtx, request models.GddRequest) models.GddRespo
if request.Year == time.Now().Year() {
gdds = persistence.CurrentGddFindFirstByYearAndLocation(ctx, request.BuildLocation())
} else {
start := time.Now()
gdds = persistence.GddFindFirstByYearAndLocation(request.Year, request.BuildLocation())
duration := time.Since(start)
fmt.Println(duration.Seconds())
}
returnGdds := models.GddResponse{
Product: product.Name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment