File tree Expand file tree Collapse file tree 4 files changed +2
-22
lines changed
Expand file tree Collapse file tree 4 files changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ linters:
2323 - promlinter
2424 - thelper
2525 - unconvert
26+ - unused
2627 settings :
2728 goheader :
2829 values :
Original file line number Diff line number Diff line change @@ -190,11 +190,6 @@ func (bb *bitsForBytes) set(b byte) {
190190 bb .bits [b / 8 ] |= 1 << (b % 8 )
191191}
192192
193- //nolint:unused
194- func (bb * bitsForBytes ) get (b byte ) bool {
195- return bb .getUint8 (b )
196- }
197-
198193func (bb * bitsForBytes ) getUint8 (i uint8 ) bool {
199194 return (bb .bits [i / 8 ]>> (i % 8 ))& 1 > 0
200195}
Original file line number Diff line number Diff line change @@ -105,25 +105,10 @@ func (n *Node) makeWithMetadata() {
105105 n .nodeType = n .nodeType | nodeTypeWithMetadata
106106}
107107
108- //nolint:unused
109- func (n * Node ) makeNotValue () {
110- n .nodeType = (nodeTypeMask ^ nodeTypeValue ) & n .nodeType
111- }
112-
113- //nolint:unused
114- func (n * Node ) makeNotEdge () {
115- n .nodeType = (nodeTypeMask ^ nodeTypeEdge ) & n .nodeType
116- }
117-
118108func (n * Node ) makeNotWithPathSeparator () {
119109 n .nodeType = (nodeTypeMask ^ nodeTypeWithPathSeparator ) & n .nodeType
120110}
121111
122- //nolint:unused
123- func (n * Node ) makeNotWithMetadata () {
124- n .nodeType = (nodeTypeMask ^ nodeTypeWithMetadata ) & n .nodeType
125- }
126-
127112func (n * Node ) SetObfuscationKey (obfuscationKey []byte ) {
128113 bytes := make ([]byte , 32 )
129114 copy (bytes , obfuscationKey )
Original file line number Diff line number Diff line change @@ -63,8 +63,7 @@ type Service struct {
6363}
6464
6565const (
66- traceDuration = 30 * time .Second // duration for every root tracing span
67- ConcurrentPushes = swarm .Branches // how many chunks to push simultaneously
66+ ConcurrentPushes = swarm .Branches // how many chunks to push simultaneously
6867 DefaultRetryCount = 6
6968)
7069
You can’t perform that action at this time.
0 commit comments