Skip to content

Commit

Permalink
fix: move global import in publisher sample (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
acocuzzo committed Feb 14, 2023
1 parent 7d92d2f commit 271a46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/snippets/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"""

import argparse
from typing import Callable


def list_topics(project_id: str) -> None:
Expand Down Expand Up @@ -139,6 +138,7 @@ def publish_messages_with_error_handler(project_id: str, topic_id: str) -> None:
"""Publishes multiple messages to a Pub/Sub topic with an error handler."""
from concurrent import futures
from google.cloud import pubsub_v1
from typing import Callable

# TODO(developer)
# project_id = "your-project-id"
Expand Down

0 comments on commit 271a46d

Please sign in to comment.