removes empty option in JSON tag

option can not be empty in JSON tag

Signed-off-by: chavacava <salvadorcavadini+github@gmail.com>
This commit is contained in:
chavacava 2022-06-25 11:32:53 +02:00
parent cabdb13dad
commit 756d77663b

View File

@ -59,7 +59,7 @@ type serverStats struct {
StartTime time.Time `json:"startTime"`
} `json:"leaderInfo"`
RecvAppendRequestCnt uint64 `json:"recvAppendRequestCnt,"`
RecvAppendRequestCnt uint64 `json:"recvAppendRequestCnt"`
RecvingPkgRate float64 `json:"recvPkgRate,omitempty"`
RecvingBandwidthRate float64 `json:"recvBandwidthRate,omitempty"`