mirror of
https://github.com/status-im/consul.git
synced 2025-03-02 14:20:39 +00:00
Embrace the future and use Go 1.6's vendor support via Godep. Go 1.5 users should `export GO15VENDOREXPERIMENT=1`
11 lines
188 B
Go
11 lines
188 B
Go
package buffer
|
|
|
|
func BothClosed(in *Inbound, out *Outbound) (closed bool) {
|
|
in.L.Lock()
|
|
out.L.Lock()
|
|
closed = (in.err != nil && out.err != nil)
|
|
out.L.Unlock()
|
|
in.L.Unlock()
|
|
return
|
|
}
|