comparison pkg/controllers/cross.go @ 1333:8c6b5d47a7ff

Renamed octree.OctreeCache to octree.Cache to reduce stuttering.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 25 Nov 2018 19:25:27 +0100
parents d753ce6cf588
children 84e78d2e2d95
comparison
equal deleted inserted replaced
1332:447db2bce052 1333:8c6b5d47a7ff
75 csi := input.(*models.CrossSectionInput) 75 csi := input.(*models.CrossSectionInput)
76 76
77 start := time.Now() 77 start := time.Now()
78 ctx := req.Context() 78 ctx := req.Context()
79 79
80 tree, err := octree.Cache.Get( 80 tree, err := octree.FromCache(
81 ctx, conn, 81 ctx, conn,
82 csi.Properties.Bottleneck, csi.Properties.Date.Time) 82 csi.Properties.Bottleneck, csi.Properties.Date.Time)
83 83
84 log.Printf("loading octree took: %s\n", time.Since(start)) 84 log.Printf("loading octree took: %s\n", time.Since(start))
85 if err != nil { 85 if err != nil {