From 0e1aef6bffa256605e3d8ac8c0313d1e4fefe2d5 Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 27 Feb 2023 15:28:34 +0000 Subject: [PATCH] Fix typo in TableMapData - rename ConectionCache -> ConnectionCache. Closes #535 --- plugin/funcs.go | 4 ++-- plugin/plugin.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/funcs.go b/plugin/funcs.go index 3f7ac237..eb072567 100644 --- a/plugin/funcs.go +++ b/plugin/funcs.go @@ -72,6 +72,6 @@ Plugin examples: type TableMapFunc func(ctx context.Context, d *TableMapData) (map[string]*Table, error) type TableMapData struct { - Connection *Connection - ConectionCache *connection.ConnectionCache + Connection *Connection + ConnectionCache *connection.ConnectionCache } diff --git a/plugin/plugin.go b/plugin/plugin.go index bff5fd75..a5a4806d 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -642,8 +642,8 @@ func (p *Plugin) initialiseTables(ctx context.Context, connection *Connection) ( }() tableMapData := &TableMapData{ - Connection: connection, - ConectionCache: p.ensureConnectionCache(connection.Name), + Connection: connection, + ConnectionCache: p.ensureConnectionCache(connection.Name), } tableMap, err = p.TableMapFunc(ctx, tableMapData) if err != nil {