channeldb: (nit) remove size argument from map make

This commit is contained in:
Andras Banki-Horvath 2020-04-09 19:03:31 +02:00
parent c7fa5ea863
commit 3628e65378

@ -1218,7 +1218,7 @@ func deserializeInvoice(r io.Reader) (Invoice, error) {
// deserializeHtlcs reads a list of invoice htlcs from a reader and returns it
// as a map.
func deserializeHtlcs(r io.Reader) (map[CircuitKey]*InvoiceHTLC, error) {
htlcs := make(map[CircuitKey]*InvoiceHTLC, 0)
htlcs := make(map[CircuitKey]*InvoiceHTLC)
for {
// Read the length of the tlv stream for this htlc.