Skip to content

Commit

Permalink
fix(permalink): remove memoize on get salt func (apache#19749)
Browse files Browse the repository at this point in the history
(cherry picked from commit cf51459)
  • Loading branch information
villebro authored and sadpandajoe committed Apr 18, 2022
1 parent a10cb4b commit 452a806
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions superset/key_value/shared_entries.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

from superset.key_value.types import KeyValueResource, SharedKey
from superset.key_value.utils import get_uuid_namespace, random_key
from superset.utils.memoized import memoized

RESOURCE = KeyValueResource.APP
NAMESPACE = get_uuid_namespace("")
Expand All @@ -42,7 +41,6 @@ def set_shared_value(key: SharedKey, value: Any) -> None:
CreateKeyValueCommand(resource=RESOURCE, value=value, key=uuid_key).run()


@memoized
def get_permalink_salt(key: SharedKey) -> str:
salt = get_shared_value(key)
if salt is None:
Expand Down

0 comments on commit 452a806

Please sign in to comment.