Skip to content
Snippets Groups Projects

Fix commit confirm

Merged Ghost User requested to merge fix-commit-confirm into develop
17 files
+ 587
301
Compare changes
  • Side-by-side
  • Inline
Files
17
+ 2
2
@@ -177,7 +177,7 @@ func (p *PrincipalNetworkDomainAdapter) CommittedChanges() []uuid.UUID {
}
// GetChange sends an API call to the controller requesting the specified change
func (p *PrincipalNetworkDomainAdapter) GetChange(uuid.UUID, ...int) (change.Change, error) {
func (p *PrincipalNetworkDomainAdapter) GetChange(uuid.UUID) (change.Change, error) {
return nil, &errors.ErrNotYetImplemented{}
}
@@ -204,7 +204,7 @@ func (p *PrincipalNetworkDomainAdapter) Confirm(cuid uuid.UUID) error {
func filterChanges(state ppb.Change_State, resp *ppb.GetResponse) []uuid.UUID {
changes := make([]uuid.UUID, 0)
for _, ch := range resp.Change {
if ch.State == ppb.Change_PENDING {
if ch.State == state {
id, _ := uuid.Parse(ch.Id)
changes = append(changes, id)
}
Loading