summary refs log tree commit diff stats
path: root/svc/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'svc/init.go')
-rw-r--r--svc/init.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/svc/init.go b/svc/init.go
index 8e9bb20..7db5303 100644
--- a/svc/init.go
+++ b/svc/init.go
@@ -101,11 +101,10 @@ func watchForInterrupt() {
 			db := <-dbChan
 
 			switch dbType := db.(type) {
-
 			case *dbLevel:
-				lvl := dbType
-				err := lvl.db.Close()
-				errLog("", err)
+				errLog("", dbType.db.Close())
+			case *dbSqlite:
+				errLog("", dbType.db.Close())
 			}
 
 			if !confObj.StdoutLogging {
itter Ben Morrison <ben@gbmor.dev> 2019-05-22 23:51:12 -0400 moved test init funcs to init_test, testing POST' href='/gbmor/getwtxt/commit/post_test.go?h=v0.4.1&id=a6c816217f09e4d462949c2631a88439886ed655'>a6c8162 ^
6f93835 ^

a6c8162 ^






6f93835 ^
a6c8162 ^




a6c8162 ^
6f93835 ^
a6c8162 ^












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