github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/retryrpc/client_tracking.go (about) 1 // Copyright (c) 2015-2021, NVIDIA CORPORATION. 2 // SPDX-License-Identifier: Apache-2.0 3 4 package retryrpc 5 6 // This file contains functions in the server which 7 // keep track of clients. 8 9 func (ci *clientInfo) isEmpty() bool { 10 if len(ci.completedRequest) == 0 { 11 return true 12 } 13 return false 14 } 15 16 func (ci *clientInfo) completedCnt() int { 17 return len(ci.completedRequest) 18 }