Skip to content

Commit

Permalink
multi: Make pool package internal.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Aug 7, 2024
1 parent a1d7b08 commit ecc04ac
Show file tree
Hide file tree
Showing 51 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tmp
logs
*.log
*.conf
/pool/testdb
/internal/pool/testdb
/certs/*

# Testing, profiling, and benchmarking artifacts
Expand Down
2 changes: 1 addition & 1 deletion cmd/miner/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"sync/atomic"
"time"

"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
)

// work represents the data received from a work notification. It comprises of
Expand Down
2 changes: 1 addition & 1 deletion cmd/miner/cpuminer.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/decred/dcrd/blockchain/standalone/v2"
"github.com/decred/dcrd/wire"
"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/decred/dcrd/certgen"
"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrd/txscript/v4/stdaddr"
"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
"github.com/decred/slog"
)

Expand Down
2 changes: 1 addition & 1 deletion dcrpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/decred/dcrd/rpcclient/v8"
"github.com/decred/dcrpool/internal/gui"
"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
)

// newHub returns a new pool hub configured with the provided details that is
Expand Down
4 changes: 2 additions & 2 deletions internal/gui/account.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -7,7 +7,7 @@ package gui
import (
"net/http"

"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
"github.com/gorilla/csrf"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/gui/admin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -7,7 +7,7 @@ package gui
import (
"net/http"

"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
"github.com/gorilla/csrf"
"github.com/gorilla/sessions"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/gui/cache.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -11,7 +11,7 @@ import (
"sync"

"github.com/decred/dcrd/dcrutil/v4"
"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
)

// client represents a mining client. It is json annotated so it can easily be
Expand Down
4 changes: 2 additions & 2 deletions internal/gui/gui.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2023 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -24,7 +24,7 @@ import (
"github.com/gorilla/mux"
"github.com/gorilla/sessions"

"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
)

// Config contains all of the required configuration values for the GUI
Expand Down
4 changes: 2 additions & 2 deletions internal/gui/middleware.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -9,7 +9,7 @@ import (
"net/http"
"strings"

"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
"github.com/gorilla/sessions"
)

Expand Down
4 changes: 2 additions & 2 deletions internal/gui/pagination.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2020-2021 The Decred developers
// Copyright (c) 2020-2024 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.

Expand All @@ -10,7 +10,7 @@ import (
"net/http"
"strconv"

"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
"github.com/gorilla/mux"
"github.com/gorilla/sessions"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/jrick/logrotate/rotator"

"github.com/decred/dcrpool/internal/gui"
"github.com/decred/dcrpool/pool"
"github.com/decred/dcrpool/internal/pool"
)

// logWriter implements an io.Writer that outputs to both standard output and
Expand Down

0 comments on commit ecc04ac

Please sign in to comment.