Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Unified Diff: common/gcloud/pubsub/pubsub.go

Issue 1838303002: Use native Pub/Sub library primitives. (Closed) Base URL: https://github.com/luci/luci-go@logdog-go1.6
Patch Set: Use "Topic" instead of "NewTopic" ... don't want to create :) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/gcloud/pubsub/connection_impl.go ('k') | common/gcloud/pubsub/quota.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/gcloud/pubsub/pubsub.go
diff --git a/common/gcloud/pubsub/pubsub.go b/common/gcloud/pubsub/pubsub.go
deleted file mode 100644
index 9867e32b369d5bd600df500d01d2e22bc01c1f87..0000000000000000000000000000000000000000
--- a/common/gcloud/pubsub/pubsub.go
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package pubsub
-
-import (
- "google.golang.org/cloud/pubsub"
-)
-
-// Message is a Google Pub/Sub API message type. It's included here as a
-// convenience so users don't have to import the other library in addition to
-// this one.
-type Message pubsub.Message
-
-func localMessageToPubSub(m []*Message) (ms []*pubsub.Message) {
- if len(m) > 0 {
- ms = make([]*pubsub.Message, len(m))
- for i, msg := range m {
- ms[i] = (*pubsub.Message)(msg)
- }
- }
- return
-}
-
-func pubSubMessageToLocal(ms []*pubsub.Message) (m []*Message) {
- if len(ms) > 0 {
- m = make([]*Message, len(ms))
- for i, msg := range ms {
- m[i] = (*Message)(msg)
- }
- }
- return
-}
« no previous file with comments | « common/gcloud/pubsub/connection_impl.go ('k') | common/gcloud/pubsub/quota.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698