From c6e3059e32fadaa9766cab4a94bd9e707a253e98 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Sun, 3 Feb 2019 15:49:19 +0400 Subject: [PATCH] fix formatting --- libs/pubsub/pubsub.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/libs/pubsub/pubsub.go b/libs/pubsub/pubsub.go index fd4a2693..9ad63430 100644 --- a/libs/pubsub/pubsub.go +++ b/libs/pubsub/pubsub.go @@ -13,10 +13,10 @@ // Example: // // q, err := query.New("account.name='John'") -// if err != nil { -// return err -// } -// ctx, cancel := context.WithTimeout(context.Background(), 1 * time.Second) +// if err != nil { +// return err +// } +// ctx, cancel := context.WithTimeout(context.Background(), 1 * time.Second) // defer cancel() // subscription, err := pubsub.Subscribe(ctx, "johns-transactions", q) // if err != nil { @@ -25,12 +25,12 @@ // // for { // select { -// case msg <- subscription.Out(): -// // handle msg.Data() and msg.Tags() -// case <-subscription.Cancelled(): -// return subscription.Err() -// } -// } +// case msg <- subscription.Out(): +// // handle msg.Data() and msg.Tags() +// case <-subscription.Cancelled(): +// return subscription.Err() +// } +// } // package pubsub