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

Commit

Permalink
other naming thing, unnecessary type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
freels committed Feb 17, 2011
1 parent ab4bfb7 commit 6e6975f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/com/twitter/flockdb/FlockDB.scala
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ class FlockDB(config: FlockDBConfig, w3c: W3CStats) extends GizzardServer[shards
}

lazy val flockThriftServer = {
val processor = new flockdb.thrift.FlockDB.Processor(
val processor = new thrift.FlockDB.Processor(
FlockExceptionWrappingProxyFactory(
LoggingProxy[flockdb.thrift.FlockDB.Iface](
LoggingProxy[thrift.FlockDB.Iface](
Stats, w3c, "FlockDB",
flockService)))

Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/com/twitter/flockdb/jobs/Repair.scala
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Repair(shardIds: Seq[ShardId], cursor: Repair.RepairCursor, count: Int,


def repair(shards: Seq[Shard]) = {
val tableIds = shards.map((shard:Shard) => nameServer.getRootForwardings(shard.shardInfo.id).toSeq(0).tableId)
val tableIds = shards.map(shard => nameServer.getRootForwardings(shard.shardInfo.id).head.tableId)

val listCursors = shards.map( (shard) => {
val (seq, newCursor) = shard.selectAll(cursor, count)
Expand Down Expand Up @@ -181,7 +181,7 @@ class MetadataRepair(shardIds: Seq[ShardId], cursor: MetadataRepair.RepairCursor
}

def repair(shards: Seq[Shard]) = {
val tableIds = shards.map((shard:Shard) => nameServer.getRootForwardings(shard.shardInfo.id).toSeq(0).tableId)
val tableIds = shards.map(shard => nameServer.getRootForwardings(shard.shardInfo.id).head.tableId)

val listCursors = shards.map( (shard) => {
val (seq, newCursor) = shard.selectAllMetadata(cursor, count)
Expand Down

0 comments on commit 6e6975f

Please sign in to comment.