1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 11:57:02 +00:00

remove any reference to the pre go1.9 context.Context and replace with iris.Context on some places that were forgotten

got an email feedback about this


Former-commit-id: b1caa261a0d425d8db2091bffb8cfd6065c4e1fa
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-08-11 15:43:47 +03:00
parent 943c3f77cb
commit 5c91440e46
11 changed files with 29 additions and 33 deletions

View File

@@ -10,7 +10,7 @@ func main() {
// subdomains works with all available routers, like other features too.
app.Get("/", func(ctx context.Context) {
app.Get("/", func(ctx iris.Context) {
ctx.BeginTransaction(func(t *context.Transaction) {
// OPTIONAl STEP: , if true then the next transictions will not be executed if this transiction fails
// t.SetScope(context.RequestTransactionScope)