Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reorganize.

  • Loading branch information...
commit c9d419f157c3c2f950817ca147b20bba478211af 1 parent 84938b7
@kr kr authored
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,
Please sign in to comment.
Something went wrong with that request. Please try again.