Skip to content

Commit

Permalink
Bring back ability to get function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaikge committed Jan 3, 2014
1 parent 26ea07a commit 94b00af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions worker/inpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions worker/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94b00af

Please sign in to comment.