From 65027853c2c5962d0e01310b09647e27186ff9c0 Mon Sep 17 00:00:00 2001 From: Cristine Guadelupe Date: Tue, 29 Oct 2024 20:13:56 +0800 Subject: [PATCH] Fix: ZTA typos (#2845) --- lib/livebook/zta/cloudflare.ex | 4 ++-- lib/livebook/zta/google_iap.ex | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/livebook/zta/cloudflare.ex b/lib/livebook/zta/cloudflare.ex index 1b19252f3..6b78c8713 100644 --- a/lib/livebook/zta/cloudflare.ex +++ b/lib/livebook/zta/cloudflare.ex @@ -6,7 +6,7 @@ defmodule Livebook.ZTA.Cloudflare do import Plug.Conn @assertion "cf-access-jwt-assertion" - @renew_afer 24 * 60 * 60 * 1000 + @renew_after 24 * 60 * 60 * 1000 @fields %{"user_uuid" => :id, "name" => :name, "email" => :email} defstruct [:req_options, :identity, :name] @@ -39,7 +39,7 @@ defmodule Livebook.ZTA.Cloudflare do defp renew(state) do Logger.debug("[#{inspect(__MODULE__)}] requesting #{inspect(state.req_options)}") keys = Req.request!(state.req_options).body["keys"] - Process.send_after(self(), :renew, @renew_afer) + Process.send_after(self(), :renew, @renew_after) Livebook.ZTA.put(state.name, {state.identity, keys}) state end diff --git a/lib/livebook/zta/google_iap.ex b/lib/livebook/zta/google_iap.ex index 7e004c08c..123efef0d 100644 --- a/lib/livebook/zta/google_iap.ex +++ b/lib/livebook/zta/google_iap.ex @@ -6,7 +6,7 @@ defmodule Livebook.ZTA.GoogleIAP do import Plug.Conn @assertion "x-goog-iap-jwt-assertion" - @renew_afer 24 * 60 * 60 * 1000 + @renew_after 24 * 60 * 60 * 1000 @fields %{"sub" => :id, "name" => :name, "email" => :email} defstruct [:req_options, :identity, :name] @@ -39,7 +39,7 @@ defmodule Livebook.ZTA.GoogleIAP do defp renew(state) do Logger.debug("[#{inspect(__MODULE__)}] requesting #{inspect(state.req_options)}") keys = Req.request!(state.req_options).body["keys"] - Process.send_after(self(), :renew, @renew_afer) + Process.send_after(self(), :renew, @renew_after) Livebook.ZTA.put(state.name, {state.identity, keys}) state end