Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #58 from prcm/patch-1
Browse files Browse the repository at this point in the history
'version' and 'dump-stats' command shoud not be returned extra new line.
  • Loading branch information
Robey Pointer committed Aug 29, 2011
2 parents f303481 + 634da0d commit f7e215b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/net/lag/kestrel/MemcacheHandler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ extends NettyHandler[MemcacheRequest](channelGroup, queueCollection, maxOpenTran
dump += queues.stats(qName).map { case (k, v) => k + "=" + v }.mkString(" ", "\r\n ", "")
dump += "}"
}
channel.write(new MemcacheResponse(dump.mkString("", "\r\n", "\r\nEND\r\n")))
channel.write(new MemcacheResponse(dump.mkString("", "\r\n", "\r\nEND")))
}

private def version() = {
channel.write(new MemcacheResponse("VERSION " + Kestrel.runtime.jarVersion + "\r\n"))
channel.write(new MemcacheResponse("VERSION " + Kestrel.runtime.jarVersion))
}

private def quit() = {
Expand Down

0 comments on commit f7e215b

Please sign in to comment.