Showing 1 of 1 files from the diff.

@@ -176,6 +176,23 @@
Loading
176 176
	return true
177 177
}
178 178
179 +
func (cm *BasicConnMgr) IsProtected(id peer.ID, tag string) (protected bool) {
180 +
	cm.plk.Lock()
181 +
	defer cm.plk.Unlock()
182 +
183 +
	tags, ok := cm.protected[id]
184 +
	if !ok {
185 +
		return false
186 +
	}
187 +
188 +
	if tag == "" {
189 +
		return true
190 +
	}
191 +
192 +
	_, protected = tags[tag]
193 +
	return protected
194 +
}
195 +
179 196
// peerInfo stores metadata for a given peer.
180 197
type peerInfo struct {
181 198
	id       peer.ID
Files Coverage
connmgr.go 90.71%
decay.go 85.63%
options.go 100.00%
Project Totals (3 files) 88.91%
301.1
1.13.x=.13.x
TRAVIS_OS_NAME=linux
300.1
1.13.x=.13.x
TRAVIS_OS_NAME=linux
1
coverage:
2
  range: "50...100"
3
comment: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading