Permalink
Browse files

Reorganize.

  • Loading branch information...
1 parent 84938b7 commit c9d419f157c3c2f950817ca147b20bba478211af @kr kr committed Mar 20, 2010
Showing with 4 additions and 7 deletions.
  1. +4 −7 beanstalk.go
View
11 beanstalk.go
@@ -138,18 +138,15 @@ var (
NotFound = os.NewError("Job or Tube Not Found")
NotIgnored = os.NewError("Tube Not Ignored")
- // This library avoids causing these errors entirely. They should never
- // happen.
+ // The server can return these but we hide them.
+ deadlineSoon = os.NewError("Job Deadline Soon")
+
+ // We entirely avoid causing these errors. They should never happen.
badFormat = os.NewError("Bad Command Format")
unknownCommand = os.NewError("Unknown Command")
expectedCrLf = os.NewError("Server Expected CR LF")
)
-// Error responses that the server can return but we hide.
-var (
- deadlineSoon = os.NewError("Job Deadline Soon")
-)
-
var replyErrors = map[string]os.Error {
"INTERNAL_ERROR": InternalError,
"OUT_OF_MEMORY": OutOfMemory,

0 comments on commit c9d419f

Please sign in to comment.