Skip to content

Commit

Permalink
chore: Deprecate PostgreSQLRegistryStore (#4025)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokoko authored Mar 21, 2024
1 parent dc4671e commit e815562
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import warnings
from typing import Optional

import psycopg2
Expand Down Expand Up @@ -37,6 +38,11 @@ def __init__(self, config: PostgresRegistryConfig, registry_path: str):
sslcert_path=getattr(config, "sslcert_path", None),
sslrootcert_path=getattr(config, "sslrootcert_path", None),
)
warnings.warn(
"PostgreSQLRegistryStore is deprecated and will be removed in the future releases. Please use SqlRegistry instead.",
DeprecationWarning,
)

self.table_name = config.path
self.cache_ttl_seconds = config.cache_ttl_seconds

Expand Down

0 comments on commit e815562

Please sign in to comment.