File tree 5 files changed +100
-71
lines changed
5 files changed +100
-71
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
"github.com/gin-gonic/gin"
13
13
"github.com/lozy219/trustscience/backend/matching"
14
14
"github.com/lozy219/trustscience/backend/record"
15
- "github.com/mcuadros/go-gin-prometheus"
15
+ ginprometheus "github.com/mcuadros/go-gin-prometheus"
16
16
"github.com/prometheus/client_golang/prometheus"
17
17
"github.com/prometheus/client_golang/prometheus/promauto"
18
18
)
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func timeToSlot(t time.Time) string {
31
31
32
32
func currentSlot () string {
33
33
currentTime := time .Now ()
34
- return timeToSlot (currentTime )
34
+ return timeToSlotNew (currentTime )
35
35
}
36
36
37
37
func currentSlotNew () string {
@@ -41,7 +41,7 @@ func currentSlotNew() string {
41
41
42
42
func previousSlot () string {
43
43
prevTime := time .Now ().Add (time .Duration (- 2 ) * time .Hour )
44
- return timeToSlot (prevTime )
44
+ return timeToSlotNew (prevTime )
45
45
}
46
46
47
47
func previousSlotNew () string {
Original file line number Diff line number Diff line change @@ -3,15 +3,13 @@ module github.com/lozy219/trustscience
3
3
go 1.12
4
4
5
5
require (
6
- github.com/Depado/ginprom v1.2.0 // indirect
7
- github.com/corona10/goimagehash v1.0.1
6
+ github.com/corona10/goimagehash v1.0.2
8
7
github.com/gin-contrib/cors v1.3.0
9
- github.com/gin-gonic/gin v1.4.0
10
- github.com/go-redis/redis v6.15.5+incompatible
11
- github.com/mcuadros/go-gin-prometheus v0.1.0 // indirect
12
- github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
13
- github.com/onsi/ginkgo v1.10.1 // indirect
14
- github.com/onsi/gomega v1.7.0 // indirect
15
- github.com/sirupsen/logrus v1.4.2 // indirect
16
- golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a
8
+ github.com/gin-gonic/gin v1.5.0
9
+ github.com/go-redis/redis v6.15.6+incompatible
10
+ github.com/mcuadros/go-gin-prometheus v0.1.0
11
+ github.com/onsi/ginkgo v1.11.0 // indirect
12
+ github.com/onsi/gomega v1.8.1 // indirect
13
+ github.com/prometheus/client_golang v1.3.0
14
+ golang.org/x/image v0.0.0-20200119044424-58c23975cae1
17
15
)
You can’t perform that action at this time.
0 commit comments