Remove useless code

This commit is contained in:
Graham Christensen 2018-01-21 14:27:37 -05:00
parent e66776cee8
commit d1c2512a2d
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
5 changed files with 6 additions and 8 deletions

View file

@ -20,7 +20,8 @@ use ofborg::tasks;
fn main() {
let cfg = config::load(env::args().nth(1).unwrap().as_ref());
env_logger::init();
ofborg::setup_log();
println!("Hello, world!");

View file

@ -1,7 +1,5 @@
use ofborg::message::{Pr, Repo};
use ofborg::message::buildresult;
use ofborg::commentparser::Subset;
use ofborg::worker;
use serde_json;
#[derive(Serialize, Deserialize, Debug)]

View file

@ -1,4 +1,3 @@
use ofborg::message::{Pr, Repo};
#[derive(Serialize, Deserialize, Debug)]
pub struct BuildLogMsg {

View file

@ -68,9 +68,10 @@ impl<E: stats::SysEvents> worker::SimpleWorker for MassRebuildWorker<E> {
}
Err(e) => {
self.events.tick("job-decode-failure");
println!(
"Failed to decode message: {:?}",
String::from_utf8(body.clone())
error!(
"Failed to decode message: {:?}, Err: {:?}",
String::from_utf8(body.clone()),
e
);
Err("Failed to decode message".to_owned())
}

View file

@ -4,7 +4,6 @@ use amqp::protocol::basic::{Deliver, BasicProperties};
use std::marker::Send;
use serde::Serialize;
use serde_json;
use std::cmp::PartialEq;
pub struct Worker<T: SimpleWorker> {
internal: T,