Skip to content

Commit

Permalink
fix: if scheduler has no seed peer, return error in preheating (#2835)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Oct 30, 2023
1 parent 132d1b2 commit 12fc630
Show file tree
Hide file tree
Showing 99 changed files with 907 additions and 633 deletions.
2 changes: 1 addition & 1 deletion client/config/dynconfig_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"testing"
"time"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/health"
Expand Down
2 changes: 1 addition & 1 deletion client/config/dynconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"testing"
"time"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

Expand Down
16 changes: 10 additions & 6 deletions client/config/mocks/dynconfig_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/daemon/announcer/announcer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package announcer
import (
"testing"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"

"d7y.io/dragonfly/v2/client/config"
configmocks "d7y.io/dragonfly/v2/client/config/mocks"
Expand Down
8 changes: 6 additions & 2 deletions client/daemon/announcer/mocks/announcer_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions client/daemon/networktopology/mocks/network_topology_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/daemon/networktopology/network_topology_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
"testing"
"time"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"

v1 "d7y.io/api/v2/pkg/apis/common/v1"
schedulerv1 "d7y.io/api/v2/pkg/apis/scheduler/v1"
Expand Down
10 changes: 7 additions & 3 deletions client/daemon/objectstorage/mocks/objectstorage_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 32 additions & 28 deletions client/daemon/peer/peertask_manager_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/daemon/peer/peertask_manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import (
"time"

"github.com/go-http-utils/headers"
"github.com/golang/mock/gomock"
"github.com/phayes/freeport"
testifyassert "github.com/stretchr/testify/assert"
testifyrequire "github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"
"go.uber.org/zap/zapcore"
"golang.org/x/time/rate"
"google.golang.org/grpc"
Expand Down
Loading

0 comments on commit 12fc630

Please sign in to comment.