Skip to content

Commit

Permalink
change Job.Id to Job.ID as suggested by golint.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwanbk committed Jun 24, 2014
1 parent c88d237 commit efde2a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gobeanstalk.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NewConn(conn net.Conn, addr string) (*Conn, error) {

//Job represent beanstalkd job
type Job struct {
Id uint64
ID uint64
Body []byte
}

Expand Down
4 changes: 2 additions & 2 deletions gobeanstalk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestReserve(t *testing.T) {

func statsJob(t *testing.T, tubename string) {
conn, j := reserve(t, testtube)
yaml, err := conn.StatsJob(j.Id)
yaml, err := conn.StatsJob(j.ID)
if err != nil {
t.Fatal("StatsJob failed.Err = ", err.Error())
}
Expand All @@ -89,7 +89,7 @@ func TestStatsJob(t *testing.T) {

func TestDelete(t *testing.T) {
conn, j := reserve(t, testtube)
err := conn.Delete(j.Id)
err := conn.Delete(j.ID)
if err != nil {
t.Error("delete failed. Err = ", err.Error())
}
Expand Down

0 comments on commit efde2a8

Please sign in to comment.