Skip to content

Commit a44b738

Browse files
committed
rfq: add new RFQ service package
This commit adds a new package called rfq which contains the RFQ service. Service sub-systems include: 1. Central service manager. 2. Quote price negotiator (and price oracle). 3. Peer message manager (stream handler). 4. HTLC order manager.
1 parent 6c7797d commit a44b738

File tree

6 files changed

+1731
-0
lines changed

6 files changed

+1731
-0
lines changed

rfq/log.go

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package rfq
2+
3+
import (
4+
"github.com/btcsuite/btclog"
5+
)
6+
7+
// Subsystem defines the logging code for this subsystem.
8+
const Subsystem = "RFQS"
9+
10+
// log is a logger that is initialized with no output filters. This
11+
// means the package will not perform any logging by default until the caller
12+
// requests it.
13+
var log = btclog.Disabled
14+
15+
// DisableLog disables all library log output. Logging output is disabled
16+
// by default until UseLogger is called.
17+
func DisableLog() {
18+
UseLogger(btclog.Disabled)
19+
}
20+
21+
// UseLogger uses a specified Logger to output package logging info.
22+
// This should be used in preference to SetLogWriter if the caller is also
23+
// using btclog.
24+
func UseLogger(logger btclog.Logger) {
25+
log = logger
26+
}

0 commit comments

Comments
 (0)