fix pubkey issues
@@ -692,8 +692,8 @@ class Axon( bittensor.grpc.BittensorServicer ):
self.stats.total_out_bytes = sys.getsizeof(response)
self.stats.in_bytes_per_second.update( sys.getsizeof(request) )
self.stats.out_bytes_per_second.update( sys.getsizeof(response) )
- if request.hotkey not in self.stats.requests_per_pubkey:
pubkey = request.hotkey
+ if pubkey not in self.stats.requests_per_pubkey:
self.stats.requests_per_pubkey[ pubkey ] = 0
self.stats.successes_per_pubkey[ pubkey ] = 0
self.stats.query_times_per_pubkey[ pubkey ] = stat_utils.timed_rolling_avg(0, 0.01)
