From 94b00affec57710fb05b1202dd7c98c8421c5cc9 Mon Sep 17 00:00:00 2001 From: jake Date: Fri, 3 Jan 2014 15:58:18 -0500 Subject: [PATCH] Bring back ability to get function name --- worker/inpack.go | 4 ++++ worker/job.go | 1 + 2 files changed, 5 insertions(+) diff --git a/worker/inpack.go b/worker/inpack.go index 3a18e46..abb7516 100644 --- a/worker/inpack.go +++ b/worker/inpack.go @@ -24,6 +24,10 @@ func (inpack *inPack) Data() []byte { return inpack.data } +func (inpack *inPack) Fn() string { + return inpack.fn +} + func (inpack *inPack) Handle() string { return inpack.handle } diff --git a/worker/job.go b/worker/job.go index 7ef28de..3d6904f 100644 --- a/worker/job.go +++ b/worker/job.go @@ -3,6 +3,7 @@ package worker type Job interface { Err() error Data() []byte + Fn() string SendWarning(data []byte) SendData(data []byte) UpdateStatus(numerator, denominator int)