radondb / xenon
Showing 2 of 2 files from the diff.

@@ -50,6 +50,10 @@
Loading
50 50
		log.Error("api.v1.raft.status.error:%+v", err)
51 51
		rest.Error(w, err.Error(), http.StatusInternalServerError)
52 52
	}
53 +
	if rsp == nil {
54 +
		log.Error("api.v1.raft.status.error:rsp[nil] != [OK]")
55 +
		rest.Error(w, err.Error(), http.StatusInternalServerError)
56 +
	}
53 57
	status.Leader = rsp.GetLeader()
54 58
55 59
	w.WriteJson(status)
@@ -71,6 +75,11 @@
Loading
71 75
		log.Error("api.v1.raft.trytoleader.error:%+v", err)
72 76
		rest.Error(w, err.Error(), http.StatusInternalServerError)
73 77
	}
78 +
	if rsp == nil {
79 +
		log.Error("api.v1.raft.trytoleader.error:rsp[nil] != [OK]")
80 +
		rest.Error(w, err.Error(), http.StatusInternalServerError)
81 +
		return
82 +
	}
74 83
	if rsp.RetCode != model.OK {
75 84
		log.Error("api.v1.raft.trytoleader.error:rsp[%v] != [OK]", rsp.RetCode)
76 85
		rest.Error(w, err.Error(), http.StatusInternalServerError)
@@ -112,6 +121,11 @@
Loading
112 121
		log.Error("api.v1.raft.disable.error:%+v", err)
113 122
		rest.Error(w, err.Error(), http.StatusInternalServerError)
114 123
	}
124 +
	if rsp == nil {
125 +
		log.Error("api.v1.raft.disable.error:rsp[nil] != [OK]")
126 +
		rest.Error(w, err.Error(), http.StatusInternalServerError)
127 +
		return
128 +
	}
115 129
	if rsp.RetCode != model.OK {
116 130
		log.Error("api.v1.raft.disable.error:rsp[%v] != [OK]", rsp.RetCode)
117 131
		rest.Error(w, err.Error(), http.StatusInternalServerError)

@@ -34,6 +34,11 @@
Loading
34 34
		log.Error("api.v1.xenon.ping.error:%+v", err)
35 35
		rest.Error(w, err.Error(), http.StatusInternalServerError)
36 36
	}
37 +
	if rsp == nil {
38 +
		log.Error("api.v1.xenon.ping.error:rsp[nil] != [OK]")
39 +
		rest.Error(w, err.Error(), http.StatusInternalServerError)
40 +
		return
41 +
	}
37 42
	if rsp.RetCode != model.OK {
38 43
		log.Error("api.v1.xenon.ping.error:rsp[%v] != [OK]", rsp.RetCode)
39 44
		rest.Error(w, err.Error(), http.StatusInternalServerError)
Files Coverage
src 68%
Project Totals (51 files) 68%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading