]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/govpn/peer.go
Do not expor Busy* lock to statistics
[govpn.git] / 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