mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-17 13:13:15 +00:00
fix(sdk): remove rest emitter to graph cache in CorpGroup (#7743)
This commit is contained in:
parent
f860ce95c0
commit
23e57fffa2
@ -2,7 +2,6 @@ from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from dataclasses import dataclass
|
||||
from functools import lru_cache
|
||||
from typing import TYPE_CHECKING, Callable, Iterable, List, Optional, Union
|
||||
|
||||
import pydantic
|
||||
@ -192,9 +191,9 @@ class CorpGroup(BaseModel):
|
||||
entityUrn=urn, aspect=StatusClass(removed=False)
|
||||
)
|
||||
|
||||
@lru_cache(maxsize=32)
|
||||
@staticmethod
|
||||
def _datahub_graph_from_datahub_rest_emitter(
|
||||
self, rest_emitter: DatahubRestEmitter
|
||||
rest_emitter: DatahubRestEmitter,
|
||||
) -> DataHubGraph:
|
||||
"""
|
||||
Create a datahub graph instance from a REST Emitter.
|
||||
|
Loading…
x
Reference in New Issue
Block a user