public
Description: An Erlang client library for beanstalkd
Homepage: http://tfletcher.com/dev/erlang-beanstalk
Clone URL: git://github.com/tim/erlang-beanstalk.git
No idea why I thought get_value was called fetch.
tim (author)
Sun Apr 27 02:39:56 -0700 2008
commit  f923af777ff4480aac2cc394f11de4757a580e0a
tree    9ddb4a929be6a3a674a788b6ea797d65c034d2a3
parent  51e281506f409e7f7ea5c6e16e52e4f22331a652
...
42
43
44
45
 
46
47
48
 
49
50
51
 
52
53
54
 
55
56
57
 
58
59
60
...
42
43
44
 
45
46
47
 
48
49
50
 
51
52
53
 
54
55
56
 
57
58
59
60
0
@@ -42,19 +42,19 @@ new(ID, Body) ->
0
   [{id, ID}, {body, Body}].
0
 
0
 id(Job) ->
0
- proplists:fetch(id, Job).
0
+ proplists:get_value(id, Job).
0
 
0
 body(Job) ->
0
- proplists:fetch(body, Job).
0
+ proplists:get_value(body, Job).
0
 
0
 priority(Job) ->
0
- proplists:fetch(priority, Job, 0).
0
+ proplists:get_value(priority, Job, 0).
0
 
0
 delay(Job) ->
0
- proplists:fetch(delay, Job, 0).
0
+ proplists:get_value(delay, Job, 0).
0
 
0
 ttr(Job) ->
0
- proplists:fetch(ttr, Job, 60).
0
+ proplists:get_value(ttr, Job, 60).
0
 
0
 with(Key, Value, Job) ->
0
   [{Key, Value}|proplists:delete(Key, Job)].

Comments

    No one has commented yet.