Skip to content

Commit

Permalink
fix(review comments): Implement @Byron's suggestions on #34
Browse files Browse the repository at this point in the history
  • Loading branch information
dermesser committed Sep 25, 2016
1 parent 3cf00eb commit bb6ce78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/service_account/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ fn ack_message(methods: &PubsubMethods, id: String) {

match result {
Err(e) => {
// There's a JSON decode error happening, even on successful returns. :/
println!("Ack error: {:?}", e);
}
Ok(_) => (),
Expand Down Expand Up @@ -129,11 +128,9 @@ fn publish_stuff(methods: &PubsubMethods, message: &str) {
check_or_create_topic(&methods);

let message = pubsub::PubsubMessage {
attributes: None,
// Base64 encoded!
data: Some(base64::encode(message.as_bytes())),
publish_time: None,
message_id: None,
..Default::default()
};
let request = pubsub::PublishRequest { messages: Some(vec![message]) };

Expand Down

0 comments on commit bb6ce78

Please sign in to comment.