summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/async
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv4/async')
-rw-r--r--dhcpv4/async/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/async/client.go b/dhcpv4/async/client.go
index e6c7302..c37d249 100644
--- a/dhcpv4/async/client.go
+++ b/dhcpv4/async/client.go
@@ -34,7 +34,7 @@ type Client struct {
receiveQueue chan *dhcpv4.DHCPv4
sendQueue chan *dhcpv4.DHCPv4
packetsLock sync.Mutex
- packets map[uint32]*promise.Promise
+ packets map[dhcpv4.TransactionID]*promise.Promise
errors chan error
}
@@ -69,7 +69,7 @@ func (c *Client) Open(bufferSize int) error {
c.stopping = new(sync.WaitGroup)
c.sendQueue = make(chan *dhcpv4.DHCPv4, bufferSize)
c.receiveQueue = make(chan *dhcpv4.DHCPv4, bufferSize)
- c.packets = make(map[uint32]*promise.Promise)
+ c.packets = make(map[dhcpv4.TransactionID]*promise.Promise)
c.packetsLock = sync.Mutex{}
c.errors = make(chan error)