Skip to content

Commit

Permalink
Reverting Python template to use many cardinality
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Bennett authored and soninaren committed Oct 12, 2022
1 parent 1041225 commit 52388fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from typing import List
import logging

import azure.functions as func


def main(event: func.EventHubEvent):
logging.info('Python EventHub trigger processed an event: %s',
event.get_body().decode('utf-8'))
def main(events: List[func.EventHubEvent]):
for event in events:
logging.info('Python EventHub trigger processed an event: %s',
event.get_body().decode('utf-8'))
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bindings": [
{
"type": "eventHubTrigger",
"name": "event",
"name": "events",
"direction": "in",
"eventHubName": "samples-workitems",
"connection": "",
Expand Down

0 comments on commit 52388fc

Please sign in to comment.