Skip to content

Commit 5c39313

Browse files
Updated for error channel
1 parent b67c0b9 commit 5c39313

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

internal/transprocessor/perm-processor.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ import (
1212
)
1313

1414
/* instanciate new permission processor */
15-
func NewPermProcessor() *PermProcessor {
16-
return &PermProcessor{}
15+
func NewPermProcessor(errCh chan<-error) *PermProcessor {
16+
return &PermProcessor{
17+
errCh: errCh,
18+
}
1719
}
1820

1921
/* processor for permissions manager */
@@ -48,7 +50,9 @@ func (p *PermProcessor) Process(ctx context.Context, curSession *session.Session
4850

4951
/* for testing purposes only */
5052
time.Sleep(5 * time.Second)
51-
zap.L().Info("Completed Transaction")
53+
zap.L().Info("Completed Transaction",
54+
zap.String("ID", transaction.ID.String()),
55+
)
5256
}
5357

5458
return nil

0 commit comments

Comments
 (0)