fix formatting

This commit is contained in:
Anton Kaliaev 2019-02-03 15:49:19 +04:00
parent 6464bcba7d
commit c6e3059e32
No known key found for this signature in database
GPG Key ID: 7B6881D965918214

View File

@ -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