@@ -52,9 +52,6 @@ var peerEndpoint *pb.PeerEndpoint
52
52
var peerEndpointError error
53
53
54
54
// Cached values of commonly used configuration constants.
55
- var syncStateSnapshotChannelSize int
56
- var syncStateDeltasChannelSize int
57
- var syncBlocksChannelSize int
58
55
59
56
// Note: There is some kind of circular import issue that prevents us from
60
57
// importing the "core" package into the "peer" package. The
@@ -97,10 +94,6 @@ func CacheConfiguration() (err error) {
97
94
localAddress , localAddressError = getLocalAddress ()
98
95
peerEndpoint , peerEndpointError = getPeerEndpoint ()
99
96
100
- syncStateSnapshotChannelSize = viper .GetInt ("peer.sync.state.snapshot.channelSize" )
101
- syncStateDeltasChannelSize = viper .GetInt ("peer.sync.state.deltas.channelSize" )
102
- syncBlocksChannelSize = viper .GetInt ("peer.sync.blocks.channelSize" )
103
-
104
97
securityEnabled = true
105
98
106
99
configurationCached = true
@@ -138,30 +131,6 @@ func GetPeerEndpoint() (*pb.PeerEndpoint, error) {
138
131
return peerEndpoint , peerEndpointError
139
132
}
140
133
141
- // SyncStateSnapshotChannelSize returns the peer.sync.state.snapshot.channelSize property
142
- func SyncStateSnapshotChannelSize () int {
143
- if ! configurationCached {
144
- cacheConfiguration ()
145
- }
146
- return syncStateSnapshotChannelSize
147
- }
148
-
149
- // SyncStateDeltasChannelSize returns the peer.sync.state.deltas.channelSize property
150
- func SyncStateDeltasChannelSize () int {
151
- if ! configurationCached {
152
- cacheConfiguration ()
153
- }
154
- return syncStateDeltasChannelSize
155
- }
156
-
157
- // SyncBlocksChannelSize returns the peer.sync.blocks.channelSize property
158
- func SyncBlocksChannelSize () int {
159
- if ! configurationCached {
160
- cacheConfiguration ()
161
- }
162
- return syncBlocksChannelSize
163
- }
164
-
165
134
// SecurityEnabled returns the securityEnabled property from cached configuration
166
135
func SecurityEnabled () bool {
167
136
if ! configurationCached {
0 commit comments