]> Cypherpunks.ru repositories - govpn.git/commitdiff
Do not expor Busy* lock to statistics
authorSergey Matveev <stargrave@stargrave.org>
Sun, 13 Sep 2015 20:24:52 +0000 (23:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 13 Sep 2015 20:24:52 +0000 (23:24 +0300)
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
src/govpn/peer.go

index 5c6e13bf945e9af39bff79754df79565d01d7e0a..f5f917ac594182b1ddfc5fa593546de083024ed8 100644 (file)
@@ -84,14 +84,14 @@ type Peer struct {
        HeartbeatSent   int
 
        // Receiver
-       BusyR    sync.Mutex
+       BusyR    sync.Mutex `json:"-"`
        bufR     []byte
        tagR     *[TagSize]byte
        keyAuthR *[SSize]byte
        pktSizeR uint16
 
        // Transmitter
-       BusyT    sync.Mutex
+       BusyT    sync.Mutex `json:"-"`
        bufT     []byte
        tagT     *[TagSize]byte
        keyAuthT *[SSize]byte