Skip to content

Commit

Permalink
implement review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
JSCU-CNI committed May 14, 2024
1 parent 0ffc805 commit 76a6e0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flow/record/adapter/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import queue
import threading
from typing import Iterator, Union
from typing import Iterator, Optional, Union

import elasticsearch
import elasticsearch.helpers
Expand Down Expand Up @@ -40,7 +40,7 @@ def __init__(
verify_certs: Union[str, bool] = True,
http_compress: Union[str, bool] = True,
hash_record: Union[str, bool] = False,
api_key: Union[str, bool] = False,
api_key: Optional[str] = None,
**kwargs,
) -> None:
self.index = index
Expand Down Expand Up @@ -152,7 +152,7 @@ def __init__(
verify_certs: Union[str, bool] = True,
http_compress: Union[str, bool] = True,
selector: Union[None, Selector, CompiledSelector] = None,
api_key: Union[str] = None,
api_key: Optional[str] = None,
**kwargs,
) -> None:
self.index = index
Expand Down

0 comments on commit 76a6e0b

Please sign in to comment.