diff pkg/octree/cache.go @ 1328:d753ce6cf588

To make golint happier made context.Context to be the first argument in all calls.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 25 Nov 2018 16:26:41 +0100
parents 19a04b150b6c
children 8c6b5d47a7ff
line wrap: on
line diff
--- a/pkg/octree/cache.go	Sun Nov 25 15:56:07 2018 +0100
+++ b/pkg/octree/cache.go	Sun Nov 25 16:26:41 2018 +0100
@@ -88,8 +88,9 @@
 }
 
 func (oc *OctreeCache) Get(
+	ctx context.Context,
+	conn *sql.Conn,
 	bottleneck string, date time.Time,
-	conn *sql.Conn, ctx context.Context,
 ) (*Tree, error) {
 	oc.Lock()
 	defer oc.Unlock()