Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
Signed-off-by: Praneeth Bedapudi <praneeth@bpraneeth.com>
  • Loading branch information
bedapudi6788 committed Mar 12, 2024
1 parent eede5be commit dd54ed1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fastdeploy/_loop.py
Expand Up @@ -79,7 +79,7 @@ def start_loop(
__last_deletion_run_at = time.time()

if time.time() - __last_vaccum_run_at >= 600:
_utils.MAIN_INDEX.vacuum()
_utils.MAIN_INDEX.vaccum()
__last_vaccum_run_at = time.time()

for unique_id, data in _utils.MAIN_INDEX.search(
Expand Down
5 changes: 3 additions & 2 deletions fastdeploy/_rest.py
Expand Up @@ -137,7 +137,8 @@ def on_get(self, req, resp):
_temp_sum_of_predicted_at - _temp_sum_of_received_at
) / requests_received_in_last_x_seconds_that_are_successful

prometheus_text = f"""# HELP pending_requests The number of pending requests.
prometheus_text = f"""
# HELP pending_requests The number of pending requests.
# TYPE pending_requests gauge
pending_requests {_utils.MAIN_INDEX.count(query={"-1.predicted_at": 0, "last_predictor_success": True})}
Expand Down Expand Up @@ -176,7 +177,7 @@ def on_get(self, req, resp):
# HELP requests_received_in_last_x_seconds The number of requests received in last {_LAST_X_SECONDS} seconds.
# TYPE requests_received_in_last_x_seconds gauge
requests_received_in_last_x_seconds {requests_received_in_last_x_seconds}
"""
""".strip()

resp.status = falcon.HTTP_200
resp.content_type = "text/plain; version=0.0.4"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -18,7 +18,7 @@
EMAIL = "praneeth@bpraneeth.com"
AUTHOR = "BEDAPUDI PRANEETH"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "3.0.5"
VERSION = "3.0.6"

# What packages are required for this module to be executed?
REQUIRED = ["falcon", "liteindex", "zstandard", "gunicorn[gevent]", "msgpack"]
Expand Down

0 comments on commit dd54ed1

Please sign in to comment.