Skip to content

Commit

Permalink
More nit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
XuanWang-Amos committed Jan 23, 2024
1 parent 5c958d6 commit a3970df
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import argparse
import collections
import concurrent
import concurrent.futures
import datetime
import logging
import signal
Expand Down Expand Up @@ -108,7 +108,8 @@ def __init__(self, start: int, end: int, metadata_keys: Iterable[str]):
messages_pb2.LoadBalancerStatsResponse.MetadataByPeer
)

def _sanitize_metadata_key(self, metadata_key: str) -> str:
@classmethod
def _sanitize_metadata_key(cls, metadata_key: str) -> str:
return metadata_key.strip().lower()

def _add_metadata(
Expand Down

0 comments on commit a3970df

Please sign in to comment.