Skip to content

Commit

Permalink
Rename function to be more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jm96441n committed Nov 28, 2023
1 parent 8bd0d05 commit 7c5e3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/consul/state/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -4405,7 +4405,7 @@ func (s *Store) ServiceTopology(
}

if kind == structs.ServiceKind(structs.APIGateway) {
upstreamFromGW, err := upstreamsFromGWTxn(tx, sn)
upstreamFromGW, err := upstreamServicesForGatewayTxn(tx, sn)
if err != nil {
return 0, nil, err
}
Expand Down Expand Up @@ -4690,7 +4690,7 @@ func (s *Store) combinedServiceNodesTxn(tx ReadTxn, ws memdb.WatchSet, names []s
return maxIdx, resp, nil
}

func upstreamsFromGWTxn(tx ReadTxn, service structs.ServiceName) ([]structs.ServiceName, error) {
func upstreamServicesForGatewayTxn(tx ReadTxn, service structs.ServiceName) ([]structs.ServiceName, error) {
val, err := tx.First(tableConfigEntries, indexID, configentry.KindName{Kind: structs.BoundAPIGateway, Name: service.Name})
if err != nil {
return nil, err
Expand Down

0 comments on commit 7c5e3ba

Please sign in to comment.