Skip to content

Commit

Permalink
fix: lambda sample
Browse files Browse the repository at this point in the history
  • Loading branch information
chloeminkyung committed Nov 7, 2023
1 parent 705c74a commit 0ef2cd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions usecases/lambda/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def send_message(seq, device, temp):
schema_name="events",
typ=0,
old=None,
new=types_pb2.Record(values=[
new=[
types_pb2.Value(string_value=device),
types_pb2.Value(float_value=temp),
types_pb2.Value(string_value=datetime.datetime.now().strftime("%H:%M:%S"))
]),
],
seq_no=seq
)
res = ingestion_client.ingest_raw(user)
Expand Down
2 changes: 1 addition & 1 deletion usecases/lambda/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def message():


async def main():
reader = await pydozer_log.LogReader.new("./.dozer", "events")
reader = await pydozer_log.LogReader.new("http://127.0.0.1:50053", "events")
while True:
data = await reader.next_op()
if "op" in data.keys():
Expand Down

0 comments on commit 0ef2cd1

Please sign in to comment.