Commit fc9ce782 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 89b1ed4e
...@@ -163,7 +163,7 @@ func StartTreeSrv(zurl string) (_ *TreeSrv, err error) { ...@@ -163,7 +163,7 @@ func StartTreeSrv(zurl string) (_ *TreeSrv, err error) {
return tg, nil return tg, nil
} }
// StartAllStructsSrv spwans `treegen allstructs.srv` server. // StartAllStructsSrv spawns `treegen allstructs.srv` server.
func StartAllStructsSrv() (_ *AllStructsSrv, err error) { func StartAllStructsSrv() (_ *AllStructsSrv, err error) {
defer xerr.Context(&err, "allstructs.srv: start") defer xerr.Context(&err, "allstructs.srv: start")
...@@ -266,7 +266,7 @@ func XGetTree(db *zodb.DB, at zodb.Tid, root zodb.Oid) map[Key]string { ...@@ -266,7 +266,7 @@ func XGetTree(db *zodb.DB, at zodb.Tid, root zodb.Oid) map[Key]string {
} }
// XXX better load through direct nodes traversal, not via bucket.next? // XXX better load through direct nodes traversal, not via bucket.next?
// (firstbucket and .next are scondary and might be broken) // (firstbucket and .next are secondary and might be broken)
err = ztree.PActivate(ctx); X(err) err = ztree.PActivate(ctx); X(err)
defer ztree.PDeactivate() defer ztree.PDeactivate()
zbucket := ztree.FirstBucket() zbucket := ztree.FirstBucket()
...@@ -685,7 +685,7 @@ func TestIntSets(t *testing.T) { ...@@ -685,7 +685,7 @@ func TestIntSets(t *testing.T) {
} }
// kvdiff returns differens in between kv1 and kv2. // kvdiff returns difference in between kv1 and kv2.
var DEL = "ø" // DEL means key deletion var DEL = "ø" // DEL means key deletion
func kvdiff(kv1, kv2 map[Key]string) map[Key]string { func kvdiff(kv1, kv2 map[Key]string) map[Key]string {
delta := map[Key]string{} delta := map[Key]string{}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment