Indendation fix
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
62eb9eb76d
commit
f67f52751f
1 changed files with 19 additions and 21 deletions
|
@ -863,30 +863,28 @@ static void opServe(Strings opFlags, Strings opArgs)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch (qCmd) {
|
switch (qCmd) {
|
||||||
case qCmdHave:
|
case qCmdHave: {
|
||||||
{
|
PathSet paths = readStrings<PathSet>(in);
|
||||||
PathSet paths = readStrings<PathSet>(in);
|
writeStrings(store->queryValidPaths(paths), out);
|
||||||
writeStrings(store->queryValidPaths(paths), out);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case qCmdInfo:
|
}
|
||||||
{
|
case qCmdInfo: {
|
||||||
PathSet paths = readStrings<PathSet>(in);
|
PathSet paths = readStrings<PathSet>(in);
|
||||||
// !!! Maybe we want a queryPathInfos?
|
// !!! Maybe we want a queryPathInfos?
|
||||||
foreach (PathSet::iterator, i, paths) {
|
foreach (PathSet::iterator, i, paths) {
|
||||||
if (!store->isValidPath(*i))
|
if (!store->isValidPath(*i))
|
||||||
continue;
|
continue;
|
||||||
ValidPathInfo info = store->queryPathInfo(*i);
|
ValidPathInfo info = store->queryPathInfo(*i);
|
||||||
writeString(info.path, out);
|
writeString(info.path, out);
|
||||||
writeString(info.deriver, out);
|
writeString(info.deriver, out);
|
||||||
writeStrings(info.references, out);
|
writeStrings(info.references, out);
|
||||||
// !!! Maybe we want compression?
|
// !!! Maybe we want compression?
|
||||||
writeLongLong(info.narSize, out); // downloadSize
|
writeLongLong(info.narSize, out); // downloadSize
|
||||||
writeLongLong(info.narSize, out);
|
writeLongLong(info.narSize, out);
|
||||||
}
|
|
||||||
writeString("", out);
|
|
||||||
}
|
}
|
||||||
|
writeString("", out);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
throw Error(format("unknown serve query `%1%'") % cmd);
|
throw Error(format("unknown serve query `%1%'") % cmd);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue