2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 03:18:55 +00:00

Modernize context import in internal/fuse

Migrated using `go fix`.
This commit is contained in:
Michael Eischer 2020-10-05 23:09:52 +02:00
parent efbb850d92
commit 9ffb698c8d
7 changed files with 9 additions and 10 deletions

View File

@ -3,13 +3,13 @@
package fuse package fuse
import ( import (
"context"
"os" "os"
"path/filepath" "path/filepath"
"sync" "sync"
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
"golang.org/x/net/context"
"github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/restic"

View File

@ -3,6 +3,7 @@
package fuse package fuse
import ( import (
"context"
"sort" "sort"
"github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/debug"
@ -11,7 +12,6 @@ import (
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
"golang.org/x/net/context"
) )
// The default block size to report in stat // The default block size to report in stat

View File

@ -4,13 +4,12 @@ package fuse
import ( import (
"bytes" "bytes"
"context"
"math/rand" "math/rand"
"os" "os"
"testing" "testing"
"time" "time"
"golang.org/x/net/context"
"github.com/restic/restic/internal/repository" "github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/restic"

View File

@ -3,10 +3,11 @@
package fuse package fuse
import ( import (
"context"
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
"github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/restic"
"golang.org/x/net/context"
) )
// Statically ensure that *link implements the given interface // Statically ensure that *link implements the given interface

View File

@ -3,12 +3,11 @@
package fuse package fuse
import ( import (
"context"
"os" "os"
"github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/debug"
"golang.org/x/net/context"
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
) )

View File

@ -3,9 +3,10 @@
package fuse package fuse
import ( import (
"context"
"bazil.org/fuse" "bazil.org/fuse"
"github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/restic"
"golang.org/x/net/context"
) )
type other struct { type other struct {

View File

@ -3,6 +3,7 @@
package fuse package fuse
import ( import (
"context"
"fmt" "fmt"
"os" "os"
"time" "time"
@ -10,8 +11,6 @@ import (
"github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/restic"
"golang.org/x/net/context"
"bazil.org/fuse" "bazil.org/fuse"
"bazil.org/fuse/fs" "bazil.org/fuse/fs"
) )