Skip to content

Commit 1e2fddf

Browse files
Updated for transaction struct
1 parent 39e5664 commit 1e2fddf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/scheduler/fcfs/fcfs.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/PythonHacker24/linux-acl-management-backend/config"
1010
"github.com/PythonHacker24/linux-acl-management-backend/internal/session"
1111
"github.com/PythonHacker24/linux-acl-management-backend/internal/transprocessor"
12+
"github.com/PythonHacker24/linux-acl-management-backend/internal/types"
1213
)
1314

1415
/* spawns a new FCFS scheduler */
@@ -73,7 +74,7 @@ func (f *FCFSScheduler) Run(ctx context.Context) error {
7374
f.semaphore <- struct{}{}
7475

7576
/* go routine is available to be spawned */
76-
go func(curSession *session.Session, transaction interface{}) {
77+
go func(curSession *session.Session, transaction types.Transaction) {
7778
/* defer clearing the semaphore channel */
7879
defer func() { <-f.semaphore }()
7980

@@ -88,7 +89,7 @@ func (f *FCFSScheduler) Run(ctx context.Context) error {
8889
zap.Error(err),
8990
)
9091
}
91-
}(curSession, transaction)
92+
}(curSession, transaction.(types.Transaction))
9293
}
9394
}
9495
}

0 commit comments

Comments
 (0)