Skip to content

Commit

Permalink
fix: admin
Browse files Browse the repository at this point in the history
  • Loading branch information
fracasula committed Jul 7, 2023
1 parent d13603c commit 5a0283b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warehouse/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (*WarehouseAdmin) Query(s QueryInput, reply *warehouseutils.QueryResult) er
}

var warehouse model.Warehouse
srcMap, ok := connectionsMap[s.DestID]
srcMap, ok := bcManager.ConnectionSourcesMap(s.DestID) // TODO remove global variable
if !ok {
return errors.New("please specify a valid and existing destination ID")
}
Expand Down Expand Up @@ -100,7 +100,7 @@ func (*WarehouseAdmin) ConfigurationTest(s ConfigurationTestInput, reply *Config
}

var warehouse model.Warehouse
srcMap, ok := connectionsMap[s.DestID]
srcMap, ok := bcManager.ConnectionSourcesMap(s.DestID) // TODO remove global variable
if !ok {
return fmt.Errorf("please specify a valid and existing destinationID: %s", s.DestID)
}
Expand Down

0 comments on commit 5a0283b

Please sign in to comment.