Skip to content

Commit

Permalink
fix word spell (getredash#5859)
Browse files Browse the repository at this point in the history
Co-authored-by: guyu <[email protected]>
  • Loading branch information
gaecoli and guyu authored Feb 17, 2023
1 parent d6dbc64 commit 7ec443c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redash/metrics/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
metrics_logger = logging.getLogger("metrics")


def record_requets_start_time():
def record_request_start_time():
g.start_time = time.time()


Expand Down Expand Up @@ -53,6 +53,6 @@ def calculate_metrics_on_exception(error):


def init_app(app):
app.before_request(record_requets_start_time)
app.before_request(record_request_start_time)
app.after_request(calculate_metrics)
app.teardown_request(calculate_metrics_on_exception)

0 comments on commit 7ec443c

Please sign in to comment.