Skip to content

Commit

Permalink
Fix typo in TableMapData - rename ConectionCache -> ConnectionCache. C…
Browse files Browse the repository at this point in the history
…loses #535
  • Loading branch information
kaidaguerre committed Feb 27, 2023
1 parent ef66fca commit 0e1aef6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugin/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 2 additions & 2 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0e1aef6

Please sign in to comment.