summary refs log tree commit diff stats
path: root/svc/init_test.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-11 04:14:32 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-11 04:54:52 -0400
commit367e44f691dbd5647a7d6ae7bdbd7857b35d92a8 (patch)
treed6237e3bd3cd483801f04f19f41a41840845764e /svc/init_test.go
parent7cc45ff9314bb3343760811318b8bc238e6d945a (diff)
downloadgetwtxt-367e44f691dbd5647a7d6ae7bdbd7857b35d92a8.tar.gz
eliminated confObj.LastCache and confObj.LastPush. Unneeded when using ticker for intervals.
Diffstat (limited to 'svc/init_test.go')
-rw-r--r--svc/init_test.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/svc/init_test.go b/svc/init_test.go
index 51c969a..8b68839 100644
--- a/svc/init_test.go
+++ b/svc/init_test.go
@@ -7,7 +7,6 @@ import (
 	"os"
 	"strings"
 	"sync"
-	"time"
 
 	"github.com/getwtxt/registry"
 	"github.com/spf13/viper"
@@ -80,9 +79,6 @@ func testConfig() {
 	confObj.DBInterval = viper.GetDuration("DatabasePushInterval")
 	log.Printf("Database push interval: %v\n", confObj.DBInterval)
 
-	confObj.LastCache = time.Now()
-	confObj.LastPush = time.Now()
-
 	confObj.Instance.Vers = Vers
 	confObj.Instance.Name = viper.GetString("Instance.SiteName")
 	confObj.Instance.URL = viper.GetString("Instance.URL")
dbf813f9b19016eb873d5abe0d9d417996'>bdcc0ddb ^
7f98e013 ^
bdcc0ddb ^


7f98e013 ^
bdcc0ddb ^





7f98e013 ^
bdcc0ddb ^

7f98e013 ^



bdcc0ddb ^
















7f98e013 ^
bdcc0ddb ^


7f98e013 ^
bdcc0ddb ^





7f98e013 ^
bdcc0ddb ^

7f98e013 ^



bdcc0ddb ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120