Skip to content

Implement Stringer interface for pool.Role #405

Closed
@KaymeKaydex

Description

@KaymeKaydex

The problem is that now when logging via %v the role status is displayed as a number
sucessfully connected to pool; map[mydb1:{true 1} mydb2:{true 2}]

For backward compatibility, I suggest making a String() method with selection by switch case

type Role uint32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions